chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update SUSE rules
[elogind.git]
/
udevinfo.c
diff --git
a/udevinfo.c
b/udevinfo.c
index db562eee49d6c581c8bb1e775f56da76484684f5..58584d62f807d5851ff4df0e6e701d760f28e176 100644
(file)
--- a/
udevinfo.c
+++ b/
udevinfo.c
@@
-1,5
+1,5
@@
/*
/*
- * udevinfo - fetches attributes for a device
+ * udevinfo
.c
- fetches attributes for a device
*
* Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
*
*
* Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
*
@@
-289,7
+289,7
@@
int main(int argc, char *argv[], char *envp[])
}
retval = udev_db_get_device(&udev, pos);
if (retval != 0) {
}
retval = udev_db_get_device(&udev, pos);
if (retval != 0) {
- fprintf(stderr, "
device not found in database\n"
);
+ fprintf(stderr, "
no record for '%s' in database\n", pos
);
goto exit;
}
goto print;
goto exit;
}
goto print;
@@
-329,7
+329,7
@@
print:
goto exit;
case QUERY_SYMLINK:
if (list_empty(&udev.symlink_list))
goto exit;
case QUERY_SYMLINK:
if (list_empty(&udev.symlink_list))
-
break
;
+
goto exit
;
if (root)
list_for_each_entry(name_loop, &udev.symlink_list, node)
printf("%s/%s ", udev_root, name_loop->name);
if (root)
list_for_each_entry(name_loop, &udev.symlink_list, node)
printf("%s/%s ", udev_root, name_loop->name);