1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From cc4311a92df15523122965de381e808b1b54dca1 Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Wed, 10 Jul 2019 11:27:50 +0100
Subject: [PATCH 2/5] csv_report: print unsigned int using %u specifier instead
of %d
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
csv_report.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/csv_report.c b/csv_report.c
index 2fd5410..03c2270 100644
--- a/csv_report.c
+++ b/csv_report.c
@@ -99,7 +99,7 @@ static void csv_pstate_table_footer(UNUSED void *report_data)
static void csv_pstate_single_freq(struct cpufreq_pstate *p,
UNUSED void *report_data)
{
- printf(",,,%d,", p->freq);
+ printf(",,,%u,", p->freq);
printf("%f,", p->min_time == DBL_MAX ? 0. : p->min_time);
printf("%f,%f,%f,", p->max_time, p->avg_time, p->duration);
printf("%d", p->count);
--
2.20.1
|