bankd: log BankID:SlotNr in every log line

It's relatively inconvenient having to mentally map the slot-number to a
thread-id on every (re)connect to correlate the logs.

The logs should contain the Bank/Slot number they relate to.

Closes: OS#5611
Change-Id: I84879609781a301338dacde7ff495632e3af08b9
This commit is contained in:
Harald Welte 2022-07-11 22:14:17 +02:00
parent a5637b0f31
commit bc2e6e3385
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
extern struct value_string worker_state_names[];
#define LOGW(w, fmt, args...) \
LOGP(DBANKDW, LOGL_INFO, "[%03u %s] " fmt, (w)->num, get_value_string(worker_state_names, (w)->state), \
LOGP(DBANKDW, LOGL_INFO, "[%03u B%u:%u %s] " fmt, (w)->num, (w)->slot.bank_id, (w)->slot.slot_nr, get_value_string(worker_state_names, (w)->state), \
## args)
struct bankd;