From: Karel Zak Date: Wed, 2 Jun 2010 14:11:52 +0000 (+0200) Subject: blkid: remove _ENC from ID_PART_ENTRY_{NAME,TYPE} variables X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0159857e0d2a2fc4b1fec78b9b8dcd9982c00105;p=util-linux blkid: remove _ENC from ID_PART_ENTRY_{NAME,TYPE} variables The *_ENC variables are deprecated. All stuff for udev should be encoded. Reported-by: Kay Sievers Signed-off-by: Karel Zak --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 48af7674..f94df06a 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -268,11 +268,8 @@ static void print_udev_format(const char *name, const char *value, size_t sz) } else if (!strcmp(name, "PART_ENTRY_NAME") || !strcmp(name, "PART_ENTRY_TYPE")) { - blkid_safe_string(value, safe, sizeof(safe)); - printf("ID_%s=%s\n", name, safe); - blkid_encode_string(value, enc, sizeof(enc)); - printf("ID_%s_ENC=%s\n", name, enc); + printf("ID_%s=%s\n", name, enc); } else if (!strncmp(name, "PART_ENTRY_", 11)) printf("ID_%s=%s\n", name, value);