|
|
b2d430 |
From 8d82518980eae15d4644ce55058ed852f7f657f5 Mon Sep 17 00:00:00 2001
|
|
|
b2d430 |
From: Lukas Slebodnik <lslebodn@redhat.com>
|
|
|
b2d430 |
Date: Fri, 8 Jul 2016 13:04:10 +0200
|
|
|
b2d430 |
Subject: [PATCH 05/18] sssctl: Fix format string for size_t
|
|
|
b2d430 |
|
|
|
b2d430 |
src/tools/sssctl/sssctl_config.c: In function 'sssctl_config_check':
|
|
|
b2d430 |
src/tools/sssctl/sssctl_config.c:93:14: warning: format '%lu' expects
|
|
|
b2d430 |
argument of type 'long unsigned int', but argument 2 has type
|
|
|
b2d430 |
'size_t {aka unsigned int}' [-Wformat=]
|
|
|
b2d430 |
printf(_("Issues identified by validators: %lu\n"), num_errors);
|
|
|
b2d430 |
^
|
|
|
b2d430 |
src/tools/sssctl/sssctl_config.c:93:12: note: in expansion of macro '_'
|
|
|
b2d430 |
printf(_("Issues identified by validators: %lu\n"), num_errors);
|
|
|
b2d430 |
^
|
|
|
b2d430 |
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
|
|
|
b2d430 |
|
|
|
b2d430 |
(cherry picked from commit cca5695e6cab64def52c009afc8f055a85f1fde4)
|
|
|
b2d430 |
---
|
|
|
b2d430 |
src/tools/sssctl/sssctl_config.c | 2 +-
|
|
|
b2d430 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
b2d430 |
|
|
|
b2d430 |
diff --git a/src/tools/sssctl/sssctl_config.c b/src/tools/sssctl/sssctl_config.c
|
|
|
b2d430 |
index 4f6dbcdd7d04183c65b6613efbe5ab95df19e2c7..a66d7749c4aee9bd00c0ad2d296292658ffdb9b2 100644
|
|
|
b2d430 |
--- a/src/tools/sssctl/sssctl_config.c
|
|
|
b2d430 |
+++ b/src/tools/sssctl/sssctl_config.c
|
|
|
b2d430 |
@@ -91,7 +91,7 @@ errno_t sssctl_config_check(struct sss_cmdline *cmdline,
|
|
|
b2d430 |
}
|
|
|
b2d430 |
|
|
|
b2d430 |
/* Output from validators */
|
|
|
b2d430 |
- printf(_("Issues identified by validators: %lu\n"), num_errors);
|
|
|
b2d430 |
+ printf(_("Issues identified by validators: %zu\n"), num_errors);
|
|
|
b2d430 |
for (i = 0; i < num_errors; i++) {
|
|
|
b2d430 |
printf("%s\n", strs[i]);
|
|
|
b2d430 |
}
|
|
|
b2d430 |
--
|
|
|
b2d430 |
2.4.11
|
|
|
b2d430 |
|