1 // SPDX-License-Identifier: GPL-2.0+
16 Warning(char *fmt, ...)
20 fprintf(stderr, "%s: WARNING: ", pname);
23 vfprintf(stderr, fmt, args);
26 fprintf(stderr, "\n");
34 fprintf(stderr, "%s: ERROR: ", pname);
37 vfprintf(stderr, fmt, args);
40 fprintf(stderr, "\n");
46 Perror(char *fmt, ...)
52 fprintf(stderr, "%s: ERROR: ", pname);
55 vfprintf(stderr, fmt, args);
58 if ((p = strerror(e)) == NULL || *p == '\0')
59 fprintf(stderr, ": Unknown Error (%d)\n", e);
61 fprintf(stderr, ": %s\n", p);