Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-phobos.totalterror.net-963-1080671312-0001
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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

--=_mimegpg-phobos.totalterror.net-963-1080671312-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAabxQHNAJ/fLbfrkRAllYAJsE/hQiJa25vFbJQgOGmYACczIqYQCdFddo
17F5+UIZNqmJ18pyXxnw/s4=
=WXvR
-----END PGP SIGNATURE-----

--=_mimegpg-phobos.totalterror.net-963-1080671312-0001--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cone.1080671312.388086.963.1001>