aboutsummaryrefslogtreecommitdiff
path: root/src/devlist.cpp
AgeCommit message (Collapse)Author
2012-10-11Move report.cpp and report.h to report/ directory (v4)Igor Zhbanov
Move report.cpp and report.h to report/ directory to other report-related files.
2012-10-10Convert powertop to use new report generator facility (v2)Igor Zhbanov
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.
2012-09-18devlist: NULL terminate struct devuser fieldsNamhyung Kim
As strncpy doesn't guarantee the destination buffer is NULL- terminated, do it explicitly. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2012-09-18devlist: Remove an unnecessary sprintfNamhyung Kim
The 'filename' is not used in the loop anymore. Signed-off-by: Namhyung Kim <namhyung@gmail.com>
2012-07-17update patch issueChris E Ferron
2012-07-17Device list sort function bugIgor Zhbanov
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.
2012-05-22string and getstring cleanupChris E Ferron
2012-04-26Turn the HTML report into an easier to browse HTML "application"Arjan van de Ven
2012-04-25This is the inital Auto Tools work, along with some small updates.Chris E Ferron