mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
Print error messages to stderr
This commit is contained in:
parent
7696368682
commit
7b7b2a3b8a
1 changed files with 2 additions and 2 deletions
|
|
@ -2084,13 +2084,13 @@ dump_cachefile(const char *cachefile)
|
|||
nvlist_t *config;
|
||||
|
||||
if ((fd = open64(cachefile, O_RDONLY)) < 0) {
|
||||
(void) printf("cannot open '%s': %s\n", cachefile,
|
||||
(void) fprintf(stderr, "cannot open '%s': %s\n", cachefile,
|
||||
strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (fstat64(fd, &statbuf) != 0) {
|
||||
(void) printf("failed to stat '%s': %s\n", cachefile,
|
||||
(void) fprintf(stderr, "failed to stat '%s': %s\n", cachefile,
|
||||
strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue