From 37744ac503dceb91a4de00942e8c4633282d3eaf Mon Sep 17 00:00:00 2001 From: Oliver Hartkopp Date: Mon, 22 Feb 2010 18:57:45 +0000 Subject: [PATCH] Beautify the listing of registered gwjobs (cangw -L). --- cangw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cangw.c b/cangw.c index c03535c..b7fde0d 100644 --- a/cangw.c +++ b/cangw.c @@ -99,7 +99,7 @@ void printfilter(const void *data) { struct can_filter *filter = (struct can_filter *)data; - printf("-f %X:%X ", filter->can_id, filter->can_mask); + printf("-f %03X:%X ", filter->can_id, filter->can_mask); } void printmod(const char *type, const void *data) @@ -120,7 +120,7 @@ void printmod(const char *type, const void *data) if (mod.modtype & CGW_MOD_DATA) printf("D"); - printf(":%X.%X.", mod.cf.can_id, mod.cf.can_dlc); + printf(":%03X.%X.", mod.cf.can_id, mod.cf.can_dlc); for (i = 0; i < 8; i++) printf("%02X", mod.cf.data[i]); -- 2.39.2