Commit 04f77453 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by Mika Westerberg

thunderbolt: Show key using %*pE not %*pEp

%*pEp (without "h" or "o") is a no-op.  This string could contain
arbitrary (non-NULL) characters, so we do want escaping.  Use %*pE like
every other caller.
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 100c12f2
...@@ -636,7 +636,7 @@ static ssize_t key_show(struct device *dev, struct device_attribute *attr, ...@@ -636,7 +636,7 @@ static ssize_t key_show(struct device *dev, struct device_attribute *attr,
* It should be null terminated but anything else is pretty much * It should be null terminated but anything else is pretty much
* allowed. * allowed.
*/ */
return sprintf(buf, "%*pEp\n", (int)strlen(svc->key), svc->key); return sprintf(buf, "%*pE\n", (int)strlen(svc->key), svc->key);
} }
static DEVICE_ATTR_RO(key); static DEVICE_ATTR_RO(key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment