Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt don't hard-code the program name



details:   https://anonhg.NetBSD.org/src/rev/8c430d0f9799
branches:  trunk
changeset: 342014:8c430d0f9799
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 02 20:42:07 2015 +0000

description:
don't hard-code the program name

diffstat:

 sbin/gpt/recover.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r bed7dc3791fc -r 8c430d0f9799 sbin/gpt/recover.c
--- a/sbin/gpt/recover.c        Wed Dec 02 20:41:10 2015 +0000
+++ b/sbin/gpt/recover.c        Wed Dec 02 20:42:07 2015 +0000
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/recover.c,v 1.8 2005/08/31 01:47:19 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: recover.c,v 1.10 2015/12/02 20:41:10 christos Exp $");
+__RCSID("$NetBSD: recover.c,v 1.11 2015/12/02 20:42:07 christos Exp $");
 #endif
 
 #include <sys/types.h>
@@ -188,7 +188,7 @@
        if (gpt->gpt != NULL &&
            ((struct gpt_hdr *)(gpt->gpt->map_data))->hdr_lba_alt != last) {
                gpt_warnx(gpt, "Media size has changed, please use "
-                  "'gpt resizedisk'");
+                  "'%s resizedisk'", getprogname());
                return -1;
        }
 



Home | Main Index | Thread Index | Old Index