X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fudev%2Fudevadm.c;h=dbca369011ebd5815fefce005ad70155f8af9112;hb=67608cad2301f9ab5c92336992c176505640f2ba;hp=5e69e192c03bd75d1e8e2ebe3b63d98e5846ece8;hpb=e5f2783e73a98cfb067f10eeed2289b454c9e672;p=elogind.git diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 5e69e192c..dbca36901 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2012 Kay Sievers + * Copyright (C) 2007-2012 Kay Sievers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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); - log_debug("calling: %s\n", cmd->name); + log_debug("calling: %s", cmd->name); 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 (strcmp(udevadm_cmds[i]->name, command) == 0) { + if (streq(udevadm_cmds[i]->name, command)) { argc -= optind; argv += optind; /* we need '0' here to reset the internal state */