diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-14 09:35:13 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-15 12:21:46 +0200 |
commit | 473d6f8a7a16d1440f360b8562b746fbadee2d82 (patch) | |
tree | eb5143054103647fd5402e6c92223af1b9f5de7e /include/mtd | |
parent | 01f8f60cf06e180b2b5eb96ceb162473c0cb196a (diff) | |
download | barebox-473d6f8a7a16d1440f360b8562b746fbadee2d82.tar.gz barebox-473d6f8a7a16d1440f360b8562b746fbadee2d82.tar.xz |
stdio: replace fprintf(stderr,...) with eprintf
We have a shortcut for fprintf(stderr, so use it. This is done to
be able to remove fprintf in the next step.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mtd/utils.h b/include/mtd/utils.h index fca64abd9d..58f89df90c 100644 --- a/include/mtd/utils.h +++ b/include/mtd/utils.h @@ -41,7 +41,7 @@ #define sys_errmsg errmsg #define warnmsg(fmt, ...) do { \ - fprintf(stderr, "%s: warning!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \ + eprintf("%s: warning!: " fmt "\n", PROGRAM_NAME, ##__VA_ARGS__); \ } while(0) #endif /* INCLUDE_MTD_UTILS_H */ |