chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: show a colored red dot in "status" output indicating the state of a unit
[elogind.git]
/
src
/
udev
/
udevadm.c
diff --git
a/src/udev/udevadm.c
b/src/udev/udevadm.c
index 53419ffa62e481cac1e530dd552d0412875c2aab..dbca369011ebd5815fefce005ad70155f8af9112 100644
(file)
--- a/
src/udev/udevadm.c
+++ b/
src/udev/udevadm.c
@@
-79,7
+79,7
@@
static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int arg
{
if (cmd->debug)
log_set_max_level(LOG_DEBUG);
{
if (cmd->debug)
log_set_max_level(LOG_DEBUG);
- log_debug("calling: %s
\n
", cmd->name);
+ log_debug("calling: %s", cmd->name);
return cmd->cmd(udev, argc, argv);
}
return cmd->cmd(udev, argc, argv);
}
@@
-131,7
+131,7
@@
int main(int argc, char *argv[])
if (command != NULL)
for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) {
if (command != NULL)
for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) {
- if (str
cmp(udevadm_cmds[i]->name, command) == 0
) {
+ if (str
eq(udevadm_cmds[i]->name, command)
) {
argc -= optind;
argv += optind;
/* we need '0' here to reset the internal state */
argc -= optind;
argv += optind;
/* we need '0' here to reset the internal state */