chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Speed up udev_enumerate_scan_*
[elogind.git]
/
udev
/
udevadm-info.c
diff --git
a/udev/udevadm-info.c
b/udev/udevadm-info.c
index fa09b98299ad89749dffd41ff0914a5a774eb4eb..d95091c4a43edae87d1052eaba8cd5f92556b719 100644
(file)
--- a/
udev/udevadm-info.c
+++ b/
udev/udevadm-info.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2004-200
8
Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2004-200
9
Kay Sievers <kay.sievers@vrfy.org>
*
* 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
*
* 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
@@
-60,7
+60,7
@@
static void print_all_attributes(struct udev_device *device, const char *key)
value = udev_device_get_sysattr_value(device, dent->d_name);
if (value == NULL)
continue;
value = udev_device_get_sysattr_value(device, dent->d_name);
if (value == NULL)
continue;
- dbg(udev, "attr '%s'='%s'
(%zi)\n", dent->d_name, value, len
);
+ dbg(udev, "attr '%s'='%s'
\n", dent->d_name, value
);
/* skip nonprintable attributes */
len = strlen(value);
/* skip nonprintable attributes */
len = strlen(value);
@@
-144,15
+144,15
@@
static void print_record(struct udev_device *device)
i = udev_device_get_num_fake_partitions(device);
if (i != 0)
i = udev_device_get_num_fake_partitions(device);
if (i != 0)
- printf("A:%u\n", i);
+ printf("A:
%u\n", i);
i = udev_device_get_ignore_remove(device);
if (i != 0)
i = udev_device_get_ignore_remove(device);
if (i != 0)
- printf("R:%u\n", i);
+ printf("R:
%u\n", i);
i = udev_device_get_watch_handle(device);
if (i >= 0)
i = udev_device_get_watch_handle(device);
if (i >= 0)
- printf("W:%u\n", i);
+ printf("W:
%u\n", i);
udev_list_entry_foreach(list_entry, udev_device_get_devlinks_list_entry(device)) {
len = strlen(udev_get_dev_path(udev_device_get_udev(device)));
udev_list_entry_foreach(list_entry, udev_device_get_devlinks_list_entry(device)) {
len = strlen(udev_get_dev_path(udev_device_get_udev(device)));