diff mbox

Add line break after add_key() failure message.

Message ID oraac882c5.fsf@livre.localdomain (mailing list archive)
State New, archived
Headers show

Commit Message

Alexandre Oliva July 21, 2011, 8:28 a.m. UTC
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
---
 src/common/secret.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sage Weil July 21, 2011, 3:49 p.m. UTC | #1
Applied, thanks!

On Thu, 21 Jul 2011, Alexandre Oliva wrote:

> Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
> ---
>  src/common/secret.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/common/secret.c b/src/common/secret.c
> index f90f478..158343e 100644
> --- a/src/common/secret.c
> +++ b/src/common/secret.c
> @@ -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;
> -- 
> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/common/secret.c b/src/common/secret.c
index f90f478..158343e 100644
--- a/src/common/secret.c
+++ b/src/common/secret.c
@@ -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;