]> granicus.if.org Git - procps-ng/commitdiff
libproc-ng: prettyfy proc mount messages
authorArmin van Buuren <unknown@example.com>
Tue, 27 Jun 2006 03:07:09 +0000 (03:07 +0000)
committerCraig Small <csmall@enc.com.au>
Sat, 17 Dec 2011 23:58:02 +0000 (10:58 +1100)
A patch from Gentoo.

Bug-Gentoo: https://bugs.gentoo.org/138029?id=138029
Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup
Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup
Backported-by: Sami Kerola <kerolasa@iki.fi>
proc/readproc.c
proc/sysinfo.c

index bbfd6292b3ea59d3b8df6bfc2592a9b82c635ac2..3d5e877c4f5902da21c83ccd7319051b8c03ab63 100644 (file)
@@ -1201,7 +1201,7 @@ void look_up_our_self(proc_t *p) {
     char sbuf[1024];
 
     if(file2str("/proc/self", "stat", sbuf, sizeof sbuf) == -1){
-        fprintf(stderr, "Error, do this: mount -t proc none /proc\n");
+        fprintf(stderr, "Error, do this: mount -t proc proc /proc\n");
         _exit(47);
     }
     stat2proc(sbuf, p);    // parse /proc/self/stat
index ee5f16fe52f11121b56162b2e5bc3988b339ae1f..a110afa8864a8c5a982da9f88b0c2014b6989ddd 100644 (file)
@@ -30,8 +30,8 @@ long smp_num_cpus;     /* number of CPUs */
 #define BAD_OPEN_MESSAGE                                       \
 "Error: /proc must be mounted\n"                               \
 "  To mount /proc at boot you need an /etc/fstab line like:\n" \
-"      /proc   /proc   proc    defaults\n"                     \
-"  In the meantime, run \"mount /proc /proc -t proc\"\n"
+"      proc   /proc   proc    defaults\n"                      \
+"  In the meantime, run \"mount proc /proc -t proc\"\n"
 
 #define STAT_FILE    "/proc/stat"
 static int stat_fd = -1;