Skip to contentSkip to conversation

Add line break after add_key() failure message.

PATCH Applied Alexandre Oliva 2 participants 2 messages Jul 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add line break after add_key() failure message.

---
 src/common/secret.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/common/secret.c +1 -1
index f90f478..158343e 100644
@@ -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;
-    fprintf(stderr, "error adding secret to kernel, key name %s: %s", key_name, strerror(-ret));
+    fprintf(stderr, "error adding secret to kernel, key name %s: %s.\n", key_name, strerror(-ret));
   }
 
   return ret;
Signature · 7 lines
1.7.4.4

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
Applied
#1 lore raw

Applied, thanks!

Quoted 32 lines · Alexandre Oliva
---
 src/common/secret.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/common/secret.c +1 -1
index f90f478..158343e 100644
@@ -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;
-    fprintf(stderr, "error adding secret to kernel, key name %s: %s", key_name, strerror(-ret));
+    fprintf(stderr, "error adding secret to kernel, key name %s: %s.\n", key_name, strerror(-ret));
   }
 
   return ret;
Signature · 11 lines
1.7.4.4

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html