chiark / gitweb /
[PATCH] small cleanup
authorchristophe@saout.de <christophe@saout.de>
Sat, 10 Jan 2004 08:54:33 +0000 (00:54 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:14 +0000 (21:13 -0700)
This one is nothing important, just add some quotes to be more consistent
with the rest and make sure that the return value is positive (since the
error return values are negative). Hmm?

namedev_parse.c
udev.c

index de29057a95b14d4be6bb141695f6f55af41ff2b8..4b1377dc32a43b64f26b4cdee86afebdb055e7eb 100644 (file)
@@ -103,7 +103,7 @@ void dump_config_dev(struct config_device *dev)
                          dev->name, dev->bus, dev->place);
                break;
        case REPLACE:
-               dbg_parse("REPLACE name=%s, kernel_name=%s",
+               dbg_parse("REPLACE name='%s', kernel_name='%s'",
                          dev->name, dev->kernel_name);
                break;
        case CALLOUT:
diff --git a/udev.c b/udev.c
index 1222b239efe1787f02e2690a5f520fb87d5e0b67..bbff89bad5165ca1ee50ed98f2c6950d95cf704c 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -221,7 +221,7 @@ exit_sysbus:
        sysbus_disconnect();
 
 exit:
-       return retval;
+       return -retval;
 }
 
 int main(int argc, char **argv, char **envp)