input: kbd_matrix: add print helper define

Add a print helper define for the keyboard matrix row paired with the
row typedef.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-11-22 17:04:28 +00:00 committed by Fabio Baltieri
commit bc849c7078
2 changed files with 3 additions and 1 deletions

View file

@ -212,7 +212,7 @@ static bool input_kbd_matrix_check_key_events(const struct device *dev)
key_pressed = input_kbd_matrix_scan(dev);
for (int c = 0; c < cfg->col_size; c++) {
LOG_DBG("c=%2d u=%02x p=%02x n=%02x",
LOG_DBG("c=%2d u=" PRIkbdrow " p=" PRIkbdrow " n=" PRIkbdrow,
c,
cfg->matrix_unstable_state[c],
cfg->matrix_previous_state[c],