aboutsummaryrefslogtreecommitdiff
path: root/arm-probe
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-10-08 07:24:54 +0800
committerAndy Green <andy.green@linaro.org>2012-10-08 07:24:54 +0800
commit429ce2191b7f531df474335551b791ebd93f5e5f (patch)
tree13c4ea9cb32b5d7d1c024309bfa6dd8e9a388ef4 /arm-probe
parente396eb51c80f180e5b9097780d5edcefd9ba40df (diff)
add channel colour field
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'arm-probe')
-rw-r--r--arm-probe/arm-probe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arm-probe/arm-probe.c b/arm-probe/arm-probe.c
index e2e3466..84d49fc 100644
--- a/arm-probe/arm-probe.c
+++ b/arm-probe/arm-probe.c
@@ -117,12 +117,10 @@ static void issue_samples(enum samples_actions sa, struct aep_channel *ch,
switch (sa) {
case AEPSA_ADD_POLLFD:
- fprintf(stderr, "adding pollfd %d %d\n", (int)voltage, (int)current);
add_pollfd(&aep_context, (int)voltage, (int)current);
break;
case AEPSA_REMOVE_POLLFD:
- fprintf(stderr, "remove pollfd %d\n", (int)voltage);
remove_pollfd(&aep_context, (int)voltage);
break;
@@ -137,8 +135,8 @@ static void issue_samples(enum samples_actions sa, struct aep_channel *ch,
break;
case AEPSA_DATA_STARTING_CHANNELS:
- printf("# %s\t%s\t%s\n",
- ch->channel_name, ch->channel_name_pretty, ch->supply);
+ printf("# %s\t%s\t%s\t%s\n",
+ ch->channel_name, ch->channel_name_pretty, ch->supply, ch->colour);
if (just_power)
pos += sprintf(&titles[pos], " %s(W)",