udev: do not hardcode program name
This commit is contained in:
parent
9b2aee4170
commit
9e385314b0
|
@ -425,9 +425,10 @@ int main(int argc, char *argv[]) {
|
||||||
export = 1;
|
export = 1;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("Usage: ata_id [--export] [--help] <device>\n"
|
printf("Usage: %s [--export] [--help] <device>\n"
|
||||||
" -x,--export print values as environment keys\n"
|
" -x,--export print values as environment keys\n"
|
||||||
" -h,--help print this help text\n\n");
|
" -h,--help print this help text\n\n",
|
||||||
|
program_invocation_short_name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -849,12 +849,13 @@ int main(int argc, char *argv[]) {
|
||||||
log_open();
|
log_open();
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("Usage: cdrom_id [options] <device>\n"
|
printf("Usage: %s [options] <device>\n"
|
||||||
" -l,--lock-media lock the media (to enable eject request events)\n"
|
" -l,--lock-media lock the media (to enable eject request events)\n"
|
||||||
" -u,--unlock-media unlock the media\n"
|
" -u,--unlock-media unlock the media\n"
|
||||||
" -e,--eject-media eject the media\n"
|
" -e,--eject-media eject the media\n"
|
||||||
" -d,--debug debug to stderr\n"
|
" -d,--debug debug to stderr\n"
|
||||||
" -h,--help print this help text\n\n");
|
" -h,--help print this help text\n\n",
|
||||||
|
program_invocation_short_name);
|
||||||
goto exit;
|
goto exit;
|
||||||
default:
|
default:
|
||||||
rc = 1;
|
rc = 1;
|
||||||
|
|
Loading…
Reference in a new issue