aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hktool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hktool.c b/hktool.c
index a9bef02..e95b556 100644
--- a/hktool.c
+++ b/hktool.c
@@ -97,18 +97,18 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
break;
default:
- error(0, "getopt returned unexpected value");
+ eprintf("getopt returned unexpected value");
}
}
if (optind >= argc)
- error(0, "No MCU specified\nUsage: %s " USAGE, argv[0]);
+ eprintf("No MCU specified\nUsage: %s " USAGE, argv[0]);
if (!doflash && !doreboot)
- error(0, "Nothing to do");
+ eprintf("Nothing to do");
if (argc - optind > 1)
- error(0, "Invalid number of arguments\nUsage: %s " USAGE, argv[0]);
+ eprintf("Invalid number of arguments\nUsage: %s " USAGE, argv[0]);
if (getparams(&fp, argv[optind]) != 0)
return EXIT_FAILURE;