fprintf() in csv_report takes one param, while awaits for 0. Also corrected `something wrong' with indent -- mixed tabs and spaces.
Signed-off-by: Sergey Senozhatsky <sergey.senozhat...@gmail.com> --- cpu/cpu.cpp | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cpu/cpu.cpp b/cpu/cpu.cpp index 563aa30..dc4fd03 100644 --- a/cpu/cpu.cpp +++ b/cpu/cpu.cpp @@ -429,17 +429,17 @@ void report_display_cpu_cstates(void) fprintf(reportout.http_report, "<th colspan=2 class=\"core_header\" width=25%%>%s</th>", _core->fill_cstate_line(line, buffer2)); - } else { + } else { if (!first_pkg==0) { fprintf(reportout.csv_report, - ",,,Core,,", + ",,,%s,,", _core->fill_cstate_line(line, buffer2)); } else { - fprintf(reportout.csv_report, - ",Core,,", + fprintf(reportout.csv_report, + ",%s,,", _core->fill_cstate_line(line, buffer2)); - } - } + } + } } else { if (reporttype) { fprintf(reportout.http_report, _______________________________________________ Discuss mailing list Discuss@lesswatts.org http://lists.lesswatts.org/listinfo/discuss