Discussion:
[PATCH 4/4] report_display_cpu_cstates: fprintf() args count minsmatch
Sergey Senozhatsky
2012-02-11 23:58:25 UTC
Permalink
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.senozhatsky-***@public.gmane.org>

---

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,

Loading...