ao_log: Change flight type to uint16_t, widen APIs dealing with flight numbers to...
authorKeith Packard <keithp@keithp.com>
Fri, 28 Jan 2022 23:06:18 +0000 (15:06 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:26:49 +0000 (17:26 -0800)
commit9020a82d8b1496bc47dbe454b0735467b5a599b8
tree0a0b639264e66bf8c2fce4f58e80cbeb5b7b7f3c
parent8e73e5298206db0e781cc76ee151e96d29f29341
ao_log: Change flight type to uint16_t, widen APIs dealing with flight numbers to int32_t

Real Flight numbers are 16-bit unsigned values, but APIs using them
pass values that areoverloaded to also represent broken log slots
using negative numbers. This means that these APIs need to be able to
represent all 65535 possible flight numbers *and* all possible log
slots as negative values. Switch the variables holding only flight
numbers to uint16_t and those holding either a flight number or log
slot to int32_t.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_log.c
src/kernel/ao_log.h
src/kernel/ao_tracker.c
src/kernel/ao_tracker.h