3 * Murray Jensen <Murray.Jensen@csiro.au>
5 * SPDX-License-Identifier: GPL-2.0+
17 Warning(char *fmt, ...)
21 fprintf(stderr, "%s: WARNING: ", pname);
24 vfprintf(stderr, fmt, args);
27 fprintf(stderr, "\n");
35 fprintf(stderr, "%s: ERROR: ", pname);
38 vfprintf(stderr, fmt, args);
41 fprintf(stderr, "\n");
47 Perror(char *fmt, ...)
53 fprintf(stderr, "%s: ERROR: ", pname);
56 vfprintf(stderr, fmt, args);
59 if ((p = strerror(e)) == NULL || *p == '\0')
60 fprintf(stderr, ": Unknown Error (%d)\n", e);
62 fprintf(stderr, ": %s\n", p);