diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2016-12-22 16:24:58 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2016-12-22 16:24:58 +0100 |
commit | da3b7ca6b023ea2dadcf15542dcc9a1bc57a3d47 (patch) | |
tree | ade0d9a51d8256e6ce99e5661ae1a1e6406fd649 | |
parent | 27f76df4d35ec26bb7a1571a38cd27d978cd85e2 (diff) | |
download | hktool-da3b7ca6b023ea2dadcf15542dcc9a1bc57a3d47.tar.gz hktool-da3b7ca6b023ea2dadcf15542dcc9a1bc57a3d47.tar.xz hktool-da3b7ca6b023ea2dadcf15542dcc9a1bc57a3d47.zip |
hktool: overhaul error handing
Switch from log.h to eprintf.h
-rw-r--r-- | hktool.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |