[Sheepdog] [PATCH 02/12] collie: use %Y instead of %y in time formatting
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri May 21 13:42:29 CEST 2010
`%y' format causes a gcc warning
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
collie/collie.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/collie/collie.c b/collie/collie.c
index 714eeac..3d77077 100644
--- a/collie/collie.c
+++ b/collie/collie.c
@@ -909,7 +909,7 @@ static int cluster_info(int argc, char **argv)
printf("%s\n", sd_strerror(rsp->result));
printf("\n");
- printf("Ctime Epoch Nodes\n");
+ printf("Ctime Epoch Nodes\n");
nr_logs = rsp->data_length / sizeof(struct epoch_log);
for (i = 0; i < nr_logs; i++) {
int j;
@@ -918,7 +918,7 @@ static int cluster_info(int argc, char **argv)
ti = logs[i].ctime >> 32;
localtime_r(&ti, &tm);
- strftime(time_str, sizeof(time_str), "%y-%m-%d %H:%M:%S", &tm);
+ strftime(time_str, sizeof(time_str), "%Y-%m-%d %H:%M:%S", &tm);
printf("%s %6d", time_str, logs[i].epoch);
printf(" [");
--
1.5.6.5
More information about the sheepdog
mailing list