diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-11-01 12:45:23 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-11-01 12:46:12 -0200 |
commit | d96ae03bd924f7d6b8911024f0e787ad4a4c876f (patch) | |
tree | 8e900ec2d3849d8991a89abc5d134897e681d265 | |
parent | 07df56eb2434b04880e3c92be6ab63a4b4c8e4aa (diff) | |
download | kmod-d96ae03bd924f7d6b8911024f0e787ad4a4c876f.tar.gz |
modprobe: prefix log messages to stderr with modprobe
-rw-r--r-- | tools/modprobe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/modprobe.c b/tools/modprobe.c index 5bfba57..8340951 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -213,7 +213,7 @@ static void log_modprobe(void *data, int priority, const char *file, int line, (void)data; } -static inline void _log(int prio, const char *fmt, ...) +static void _log(int prio, const char *fmt, ...) { const char *prioname; char *msg; @@ -232,9 +232,9 @@ static inline void _log(int prio, const char *fmt, ...) prioname = prio_to_str(prio); if (use_syslog) - syslog(LOG_NOTICE, "%s: %s", prioname, msg); + syslog(prio, "%s: %s", prioname, msg); else - fprintf(stderr, "%s: %s", prioname, msg); + fprintf(stderr, "modprobe: %s: %s", prioname, msg); free(msg); if (prio <= LOG_CRIT) |