Age | Commit message (Collapse) | Author |
|
Move report.cpp and report.h to report/ directory to other report-related
files.
|
|
Convert report system to use new report generator facility
for producing parsable CSV- and HTML-reports, enhancing code readability
and maintainability, merging CSV and HTML codepaths, separating document
structure from text formatting.
|
|
As strncpy doesn't guarantee the destination buffer is NULL-
terminated, do it explicitly.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
|
|
The 'filename' is not used in the loop anymore.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
|
|
|
|
So here is the formatted version:
From 5d284137a6035bab65717fbacd98423b96d862cf Mon Sep 17 00:00:00 2001
From: Igor Zhbanov<i.zhbanov@samsung.com>
Date: Wed, 11 Jul 2012 12:08:21 +0400
Subject: [PATCH] Device list sort function bug
Sometimes PowerTOP dies with a Segmentation Fault while generating
the report. Little investigation shown that it dies while sorting
the device list. The problem is that comparison function devlist_sort
is incorrect.
The function should return true if first argument "preceeds" second.
But when strcmp() is used, it can return -1, 0 and 1. So both -1 and 1
values are silently converted to true, which is wrong. It confuses the sort()
function and it crosses boundary of array.
|
|
|
|
|
|
|