chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log: properly return -EINVAL from log_set_max_level_from_string()
[elogind.git]
/
src
/
basic
/
log.c
diff --git
a/src/basic/log.c
b/src/basic/log.c
index 5a702112f7c3af57a3b450e5dab12d5b90731e98..69977f15d69ba657ea9faa01f7eea45f62e7f0ae 100644
(file)
--- a/
src/basic/log.c
+++ b/
src/basic/log.c
@@
-27,8
+27,8
@@
#include <sys/socket.h>
#include <sys/un.h>
#include <stddef.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stddef.h>
-#include <printf.h>
+#include "parse-printf-format.h"
#include "sd-messages.h"
#include "log.h"
#include "util.h"
#include "sd-messages.h"
#include "log.h"
#include "util.h"
@@
-942,7
+942,7
@@
int log_set_max_level_from_string(const char *e) {
t = log_level_from_string(e);
if (t < 0)
t = log_level_from_string(e);
if (t < 0)
- return
t
;
+ return
-EINVAL
;
log_set_max_level(t);
return 0;
log_set_max_level(t);
return 0;