From 79cfdc5aecc8533b02696a989cc932bc74a3b83a Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 25 Aug 2008 00:14:46 +0000 Subject: [PATCH] Clarify message that says the map isn't shown when -a is given. Resolves PR 32436 from Igor Sobrado based on a suggestion by Dieter Roelants, except I expanded the message further. --- sbin/wsconsctl/wsconsctl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c index 176a1b8042e8..a008469d0208 100644 --- a/sbin/wsconsctl/wsconsctl.c +++ b/sbin/wsconsctl/wsconsctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsconsctl.c,v 1.17 2008/04/28 20:23:09 martin Exp $ */ +/* $NetBSD: wsconsctl.c,v 1.18 2008/08/25 00:14:46 dholland Exp $ */ /*- * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. @@ -173,8 +173,10 @@ main(int argc, char **argv) (*getval)(fd); for (i = 0; i < field_tab_len; i++) if (field_tab[i].flags & FLG_NOAUTO) - warnx("Use explicit arg to view %s.", - field_tab[i].name); + warnx("\"%s\" not shown with -a; use \"%s %s\"" + " to view.", + field_tab[i].name, + getprogname(), field_tab[i].name); else if (field_tab[i].flags & FLG_GET && !(field_tab[i].flags & FLG_DISABLED)) pr_field(field_tab + i, sep);