mosys logging should have printf() format checking |
|||
Issue descriptionIf you update mosys include/mosys/log.h to have /* log something */ extern int lprintf(enum log_levels level, const char *format, ...) __attribute__ ((format (__printf__, 2, 3))); /* log something including the errno string */ extern int lperror(enum log_levels level, const char *format, ...) __attribute__ ((format (__printf__, 2, 3))); then lots of warnings / errors are emitted. We should do that and fix the warnings.
,
Oct 15 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/mosys/+/f72dec2ee6f66efb319e342c58664056b1214fb6 commit f72dec2ee6f66efb319e342c58664056b1214fb6 Author: Chris Ching <chingcodes@chromium.org> Date: Sat Oct 14 10:18:32 2017 fix incorrect lperror calls BRANCH=none BUG= chromium:772532 TEST=FEATURES=test emerge-kahlee mosys Change-Id: I743526bbc49b9c5ff22e367ea18bd0405f50d5b7 Signed-off-by: Chris Ching <chingcodes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/719762 Commit-Ready: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> [modify] https://crrev.com/f72dec2ee6f66efb319e342c58664056b1214fb6/include/mosys/log.h [modify] https://crrev.com/f72dec2ee6f66efb319e342c58664056b1214fb6/core/command/eeprom.c [modify] https://crrev.com/f72dec2ee6f66efb319e342c58664056b1214fb6/intf/mmio.c [modify] https://crrev.com/f72dec2ee6f66efb319e342c58664056b1214fb6/lib/flashrom/flashrom.c
,
Oct 16 2017
,
Oct 16 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bugdroid1@chromium.org
, Oct 15 2017