From 73ff464c2153c7ac21c1ff4d439f35397dd369cb Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 2 Dec 2015 20:42:07 +0000 Subject: [PATCH] don't hard-code the program name --- sbin/gpt/recover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/gpt/recover.c b/sbin/gpt/recover.c index 24aba5107b6a..bbf4b55c89f0 100644 --- a/sbin/gpt/recover.c +++ b/sbin/gpt/recover.c @@ -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 @@ -188,7 +188,7 @@ recover(gpt_t gpt) 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; }