Beautify the listing of registered gwjobs (cangw -L).
parent
a48038d82b
commit
37744ac503
4
cangw.c
4
cangw.c
|
|
@ -99,7 +99,7 @@ void printfilter(const void *data)
|
||||||
{
|
{
|
||||||
struct can_filter *filter = (struct can_filter *)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)
|
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)
|
if (mod.modtype & CGW_MOD_DATA)
|
||||||
printf("D");
|
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++)
|
for (i = 0; i < 8; i++)
|
||||||
printf("%02X", mod.cf.data[i]);
|
printf("%02X", mod.cf.data[i]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue