Date: Tue, 30 Mar 2004 21:28:32 +0300 From: Niki Denev <nike_d@cytexbg.com> To: freebsd-current@freebsd.org Subject: Small typo in the setproctitle() output in sbin/fsck_ffs/pass5.c Message-ID: <cone.1080671312.388086.963.1001@phobos.totalterror.net>
index | next in thread | raw e-mail
[-- Attachment #1 --]
As i was continuing my struggle to see what's wrong with the ACPI support
on my new ThinkPad X31, i was forced to do many reboots, and unfortunately
some of them unclean.
And as i was watching the 'ps' output for the progress indicator for the
backgrounds fsck, at the moment that the fsck program entered p5 (pass5)
there was "\n" appended to the proctitle output, immediately after
the percent sign.
I suppose this little patch will fix this, but i don't know if it is
appropriate for a PR to be filed about such minor problem?
P.S.: I'm running -CURRENT as of yesterday.
----------------------------------------------------------------
--- src/sbin/fsck_ffs/pass5.c.orig Tue Mar 30 21:02:22 2004
+++ src/sbin/fsck_ffs/pass5.c Tue Mar 30 21:02:40 2004
@@ -158,7 +158,7 @@
got_siginfo = 0;
}
if (got_sigalarm) {
- setproctitle("%s p5 %d%%\n", cdevname,
+ setproctitle("%s p5 %d%%", cdevname,
c * 100 / sblock.fs_ncg);
got_sigalarm = 0;
}
-------------------------------------------------------------------
--
Regards,
Niki Denev
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQBAabxQHNAJ/fLbfrkRAllYAJsE/hQiJa25vFbJQgOGmYACczIqYQCdFddo
17F5+UIZNqmJ18pyXxnw/s4=
=WXvR
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cone.1080671312.388086.963.1001>
