]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph, errno: Avoid printing binary, clarify message.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 22 Jun 2011 19:48:51 +0000 (12:48 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 22 Jun 2011 22:48:44 +0000 (15:48 -0700)
Payload is a binary key, printing it to stdout is not helpful.

Key name is often "client", make the message easier to understand.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/common/secret.c

index cf03829d9245ea439cef92c2effe05bcdff979b9..0f12f6caa8fcfa91382e2473d3953a6377f5da58 100644 (file)
@@ -66,7 +66,7 @@ static int add_secret_to_kernel(const char *secret, const char *key_name)
   serial = add_key("ceph", key_name, payload, sizeof(payload), KEY_SPEC_USER_KEYRING);
   if (serial < 0) {
     ret = -errno;
-    printf("error adding secret to kernel %s %s: %s", key_name, payload, strerror(-ret));
+    printf("error adding secret to kernel, key name %s: %s", key_name, strerror(-ret));
   }
 
   return ret;