The %6d format was obviously defined when PIDs were 16 bits. It may be useful to used a fixed-width format to keep things tidy when PIDs are not so big, but include a leading space so that large PIDs don't run together.
Joe Krahn On Thu, Jun 30, 2011 at 8:43 AM, AZ 9901 <az9...@gmail.com> wrote: > Hello, > > Replacing line 719 by the following in fuser.c works fine : > printf (" %d", item->u.proc.pid); > > Could you please notify us when the package on the repository will be updated > ? > > Thank you very much ! > > Best regards, > > Benjamin > > > > 2011/6/29 AZ 9901 <az9...@gmail.com> >> >> Hello, >> >> I think there is a little display bug in last psmisc package (21.5-3), >> especially in fuser tool. >> >> For example : >> >> # fuser /tmp/test >> /tmp/test: 13487213604414537 >> >> Process numbers are not separated. >> >> I think that this is due to line 719 in fuser.c : >> printf ("%6d", item->u.proc.pid); >> >> Perhaps the following could be better ? >> printf ("%d ", item->u.proc.pid); >> >> Could it be possible to update this package ? >> >> Thank you very much ! >> >> Best regards, >> >> Benjamin >> >