summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-27 17:04:56 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-27 17:04:56 +0200
commitaaff09a30ab849186c0d4ad8bde83876d7a1a63d (patch)
treeb59885517762e7ab7eec197370ab139319e55027 /udev_rules.c
parent34129109a1f5dca72af2f3f2d3d14a9a0d0c43f6 (diff)
add ID_TYPE to the id probers
Export the type of device from ata_id and scsi_id, also strip leading and trailing whitespace and substitute consecutive whitespace with a single underline char. From: Hannes Reinecke <hare@suse.de> Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_rules.c b/udev_rules.c
index 9b9454e8fb..9606f04d3d 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -793,7 +793,7 @@ static int match_rule(struct udevice *udev, struct udev_rule *rule,
len = strlen(value);
while (len > 0 && isspace(value[len-1]))
value[--len] = '\0';
- dbg("removed %i trailing whitespace chars from '%s'", strlen(value)-len, value);
+ dbg("removed %zi trailing whitespace chars from '%s'", strlen(value)-len, value);
}
dbg("compare attribute '%s' value '%s' with '%s'", pair->name, value, pair->value);