From 5b839c58ee1e78312edf69cd2cb5f96d8b649d01 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 3 Jul 2016 23:05:41 +1000 Subject: Add newline to the end of error messages for signature format issues Signed-off-by: Allan McRae --- lib/libalpm/signing.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c index 02671582..6557c200 100644 --- a/lib/libalpm/signing.c +++ b/lib/libalpm/signing.c @@ -998,21 +998,21 @@ int SYMEXPORT alpm_extract_keyid(alpm_handle_t *handle, const char *identifier, while(pos < len) { if(!(sig[pos] & 0x80)) { _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: signature format error"), identifier); + _("%s: signature format error\n"), identifier); return -1; } if(sig[pos] & 0x40) { /* "new" packet format is not supported */ _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: unsupported signature format"), identifier); + _("%s: unsupported signature format\n"), identifier); return -1; } if(((sig[pos] & 0x3f) >> 2) != 2) { /* signature is not a "Signature Packet" */ _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: signature format error"), identifier); + _("%s: signature format error\n"), identifier); return -1; } @@ -1035,21 +1035,21 @@ int SYMEXPORT alpm_extract_keyid(alpm_handle_t *handle, const char *identifier, case 3: /* partial body length not supported */ _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: unsupported signature format"), identifier); + _("%s: unsupported signature format\n"), identifier); return -1; } if(sig[pos] != 4) { /* only support version 4 signature packet format */ _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: unsupported signature format"), identifier); + _("%s: unsupported signature format\n"), identifier); return -1; } if(sig[pos + 1] != 0x00) { /* not a signature of a binary document */ _alpm_log(handle, ALPM_LOG_ERROR, - _("%s: signature format error"), identifier); + _("%s: signature format error\n"), identifier); return -1; } -- cgit v1.2.3-24-g4f1b