chiark / gitweb /
cdrom_id: debug - print feature values in hex
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 15 Apr 2010 19:18:21 +0000 (21:18 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 15 Apr 2010 19:18:21 +0000 (21:18 +0200)
extras/cdrom_id/cdrom_id.c

index d9b6fbd..b2c107b 100644 (file)
@@ -376,7 +376,7 @@ static int cd_profiles(struct udev *udev, int fd)
                        feature_profiles(udev, &features[i]+4, features[i+3]);
                        break;
                default:
-                       info(udev, "GET CONFIGURATION: feature %i <ignored>, with %i bytes\n", feature, features[i+3]);
+                       info(udev, "GET CONFIGURATION: feature 0x%04x <ignored>, with 0x%02x bytes\n", feature, features[i+3]);
                        break;
                }
        }