udev/fido_id: fix program name in usage output
authorDavid Tardon <dtardon@redhat.com>
Fri, 11 Oct 2019 12:39:56 +0000 (14:39 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 11 Oct 2019 12:44:53 +0000 (14:44 +0200)
src/udev/fido_id/fido_id.c

index 5afd5dd..83761d7 100644 (file)
@@ -44,7 +44,7 @@ static int run(int argc, char **argv) {
         log_open();
 
         if (argc > 2)
-                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Usage: hidraw_id [SYSFS_PATH]");
+                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Usage: %s [SYSFS_PATH]", program_invocation_short_name);
 
         if (argc == 1) {
                 r = device_new_from_strv(&device, environ);