Mercurial > hg > toybox
diff toys/other/rfkill.c @ 1718:3ac823675413 draft
Fix several printf_format warnings.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 01 Mar 2015 16:43:01 -0600 |
parents | ef63b63230ee |
children | 57f2a26fa92c |
line wrap: on
line diff
--- a/toys/other/rfkill.c Sun Mar 01 16:35:05 2015 -0600 +++ b/toys/other/rfkill.c Sun Mar 01 16:43:01 2015 -0600 @@ -49,7 +49,7 @@ {"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);