From: Joseph C. Lehner Date: Mon, 25 Jan 2016 13:26:19 +0000 (+0100) Subject: Prettier error messages X-Git-Tag: v0.9~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=186ec81be4b2c18f3bf41c622175da1b1f2f2a96;p=oweals%2Fnmrpflash.git Prettier error messages --- diff --git a/nmrp.c b/nmrp.c index 61b592d..d807cd5 100644 --- a/nmrp.c +++ b/nmrp.c @@ -285,22 +285,22 @@ int nmrp_do(struct nmrpd_args *args) } if (!mac_parse(args->mac, dest)) { - fprintf(stderr, "Invalid MAC address %s.\n", args->mac); + fprintf(stderr, "Invalid MAC address '%s'.\n", args->mac); return 1; } if (!inet_aton(args->ipaddr, &ipaddr)) { - fprintf(stderr, "Invalid IP address %s.\n", args->ipaddr); + fprintf(stderr, "Invalid IP address '%s'.\n", args->ipaddr); return 1; } if (!inet_aton(args->ipmask, &ipmask)) { - fprintf(stderr, "Invalid subnet mask %s.\n", args->ipmask); + fprintf(stderr, "Invalid subnet mask '%s'.\n", args->ipmask); return 1; } if (access(args->filename, R_OK) == -1) { - fprintf(stderr, "Error accessing file %s.\n", args->filename); + fprintf(stderr, "Error accessing file '%s'.\n", args->filename); return 1; }