mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
rtsol: Use vwarnx(3) to log messages to standard error.
This ensures that the program name is included in the output, which makes it easy to identify the source of error messages printed during boot. MFC after: 1 week
This commit is contained in:
parent
d95826c43d
commit
ee74c3327a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344629
@ -787,10 +787,8 @@ warnmsg(int priority, const char *func, const char *msg, ...)
|
||||
|
||||
va_start(ap, msg);
|
||||
if (fflag) {
|
||||
if (priority <= log_upto) {
|
||||
(void)vfprintf(stderr, msg, ap);
|
||||
(void)fprintf(stderr, "\n");
|
||||
}
|
||||
if (priority <= log_upto)
|
||||
vwarnx(msg, ap);
|
||||
} else {
|
||||
snprintf(buf, sizeof(buf), "<%s> %s", func, msg);
|
||||
msg = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user