projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc08af
)
altos: report flight log offsets in hex block numbers instead of bytes
author
Keith Packard
<keithp@keithp.com>
Sat, 8 Jan 2011 01:56:06 +0000
(17:56 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sat, 8 Jan 2011 01:56:06 +0000
(17:56 -0800)
makes them compatible with the 'e' command.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_log.c
patch
|
blob
|
history
diff --git
a/src/ao_log.c
b/src/ao_log.c
index 47f24f0195151b95289e3729af64f589d13e40d0..f319834acf86a7a51cc9a788fb71c33b903db1ed 100644
(file)
--- a/
src/ao_log.c
+++ b/
src/ao_log.c
@@
-328,8
+328,10
@@
ao_log_list(void) __reentrant
{
flight = ao_log_flight(slot);
if (flight)
- printf ("flight %d start %ld end %ld\n",
- flight, ao_log_pos(slot), ao_log_pos(slot+1));
+ printf ("flight %d start %x end %x\n",
+ flight,
+ (uint16_t) (ao_log_pos(slot) >> 8),
+ (uint16_t) (ao_log_pos(slot+1) >> 8));
}
printf ("done\n");
}