Small typo in the setproctitle() output in sbin/fsck_ffs/pass5.c

Niki Denev nike_d at cytexbg.com
Tue Mar 30 11:29:05 PST 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040330/35ea712d/attachment.bin


More information about the freebsd-current mailing list