Skip to content

Commit

Permalink
drivers/usbhid-ups.c: when defaulting lbrb_log_delay_sec, suggest als…
Browse files Browse the repository at this point in the history
…o setting the lbrb_log_delay_without_calibrating flag [networkupstools#2347]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 6, 2024
1 parent a27d0ab commit 21917d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/usbhid-ups.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,9 +1440,13 @@ void upsdrv_initups(void)
) {
lbrb_log_delay_sec = 3;
upslogx(LOG_INFO, "Defaulting lbrb_log_delay_sec=%d "
"for %s model %s",
"for %s model %s%s",
lbrb_log_delay_sec,
hd->Vendor, hd->Product);
hd->Vendor, hd->Product,
testvar("lbrb_log_delay_without_calibrating")
? "" : "; consider also setting the "
"lbrb_log_delay_without_calibrating "
"flag in your configuration");
}
}

Expand Down

0 comments on commit 21917d7

Please sign in to comment.