chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rules: 78-sound-card - remove specific hardware matches, they do not belong here
[elogind.git]
/
libudev
/
libudev-util.c
diff --git
a/libudev/libudev-util.c
b/libudev/libudev-util.c
index 3a67b0cd5d0f15a43c75221bc2750a003f1762b8..030b78cd224382ff8c2de359b541c766a579443f 100644
(file)
--- a/
libudev/libudev-util.c
+++ b/
libudev/libudev-util.c
@@
-87,13
+87,13
@@
int util_log_priority(const char *priority)
int prio;
prio = strtol(priority, &endptr, 10);
int prio;
prio = strtol(priority, &endptr, 10);
- if (endptr[0] == '\0')
+ if (endptr[0] == '\0'
|| isspace(endptr[0])
)
return prio;
if (strncmp(priority, "err", 3) == 0)
return LOG_ERR;
return prio;
if (strncmp(priority, "err", 3) == 0)
return LOG_ERR;
- if (str
cmp(priority, "info"
) == 0)
+ if (str
ncmp(priority, "info", 4
) == 0)
return LOG_INFO;
return LOG_INFO;
- if (str
cmp(priority, "debug"
) == 0)
+ if (str
ncmp(priority, "debug", 5
) == 0)
return LOG_DEBUG;
return 0;
}
return LOG_DEBUG;
return 0;
}