diff mbox

[v4,4/4] KEYS: Print insert-sys-cert information to stdout instead of stderr

Message ID 1492727320-26194-5-git-send-email-mkayaalp@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mehmet Kayaalp April 20, 2017, 10:28 p.m. UTC
Detailed INFO output should go to stdout instead of stderr.

Signed-off-by: Mehmet Kayaalp <mkayaalp@linux.vnet.ibm.com>
---
 scripts/insert-sys-cert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Howells April 27, 2017, 1:57 p.m. UTC | #1
Mehmet Kayaalp <mkayaalp@linux.vnet.ibm.com> wrote:

> +#define info(format, args...) fprintf(stdout, "INFO:    " format, ## args)

Btw, you really ought to be using standard varargs macros:

	#define info(format, ...) fprintf(stdout, "INFO:    " format, ##__VA_LIST__)

But don't worry about that for now.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" 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/scripts/insert-sys-cert.c b/scripts/insert-sys-cert.c
index f558616..56c5482 100644
--- a/scripts/insert-sys-cert.c
+++ b/scripts/insert-sys-cert.c
@@ -32,7 +32,7 @@ 
 #define USED_SYM  "system_extra_cert_used"
 #define LSIZE_SYM "system_certificate_list_size"
 
-#define info(format, args...) fprintf(stderr, "INFO:    " format, ## args)
+#define info(format, args...) fprintf(stdout, "INFO:    " format, ## args)
 #define warn(format, args...) fprintf(stdout, "WARNING: " format, ## args)
 #define  err(format, args...) fprintf(stderr, "ERROR:   " format, ## args)