From: Keith Packard Date: Sat, 8 Jan 2011 01:56:06 +0000 (-0800) Subject: altos: report flight log offsets in hex block numbers instead of bytes X-Git-Tag: debian/0.8.1+36+gd794ef9~13 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=edd22ee49adf60c35f2fe6ba97c111b7ad4131c2 altos: report flight log offsets in hex block numbers instead of bytes makes them compatible with the 'e' command. Signed-off-by: Keith Packard --- diff --git a/src/ao_log.c b/src/ao_log.c index 47f24f01..f319834a 100644 --- 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"); }