summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2005-06-05 20:35:10 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2005-06-05 20:35:10 +0000
commitdcf7d97ab6f03be030709ffa244108216f9fb5dd (patch)
tree49959b10feaf56277e6b76d1753caa7409a37ecc
parentc829ad1e855dd0c3916bebfcfdbd32ce6233a4ae (diff)
downloadcanutils-dcf7d97ab6f03be030709ffa244108216f9fb5dd.tar.gz
* added 0x in front of hex values
git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-1.0-trunk@26 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-rw-r--r--candump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/candump.c b/candump.c
index 32367b6..7fef4d6 100644
--- a/candump.c
+++ b/candump.c
@@ -95,9 +95,9 @@ int main(int argc, char **argv)
return 1;
} else {
if (frame.can_id & CAN_FLAG_EXTENDED)
- printf("<%08x> ", frame.can_id & CAN_ID_EXT_MASK);
+ printf("<0x%08x> ", frame.can_id & CAN_ID_EXT_MASK);
else
- printf("<%03x> ", frame.can_id & CAN_ID_STD_MASK);
+ printf("<0x%03x> ", frame.can_id & CAN_ID_STD_MASK);
printf("[%d] ", frame.can_dlc);
for (i = 0; i < frame.can_dlc; i++) {