aboutsummaryrefslogtreecommitdiff
path: root/toys/other/rfkill.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-01 16:43:01 -0600
committerRob Landley <rob@landley.net>2015-03-01 16:43:01 -0600
commit5f1f34ae1a227edbb4b0bba7fe99009d4efd94bd (patch)
treeba1a4312963a9392b92980bce3acd7240d6c780c /toys/other/rfkill.c
parenteb4b1143b1f54a96002a83ea961d40d3169e1ae2 (diff)
downloadtoybox-5f1f34ae1a227edbb4b0bba7fe99009d4efd94bd.tar.gz
Fix several printf_format warnings.
Diffstat (limited to 'toys/other/rfkill.c')
-rw-r--r--toys/other/rfkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/rfkill.c b/toys/other/rfkill.c
index af3efe18..3ba346b1 100644
--- a/toys/other/rfkill.c
+++ b/toys/other/rfkill.c
@@ -49,7 +49,7 @@ void rfkill_main(void)
{"wimax", RFKILL_TYPE_WIMAX}, {"wwan", RFKILL_TYPE_WWAN},
{"gps", RFKILL_TYPE_GPS}, {"fm", 7}}; // RFKILL_TYPE_FM = 7
- if (!*++optargs) error_exit("'%s' needs IDENTIFIER");
+ if (!*++optargs) error_exit("'%s' needs IDENTIFIER", optargs[-1]);
for (i = 0; i < ARRAY_LEN(rftypes); i++)
if (!strcmp(rftypes[i].name, *optargs)) break;
if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX);