Skip to content

Commit

Permalink
twsi: improve debug print formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
avg-I committed Sep 23, 2021
1 parent 0075e71 commit 937a861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/iicbus/twsi/twsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ twsi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
debugf(sc->dev, "Error: %d\n", sc->error);

/* Disable module and interrupts */
debugf(sc->dev, "status=%x\n", TWSI_READ(sc, sc->reg_status));
debugf(sc->dev, "status=0x%x\n", TWSI_READ(sc, sc->reg_status));
TWSI_WRITE(sc, sc->reg_control, 0);
debugf(sc->dev, "status=%x\n", TWSI_READ(sc, sc->reg_status));
debugf(sc->dev, "status=0x%x\n", TWSI_READ(sc, sc->reg_status));
error = sc->error;
mtx_unlock(&sc->mutex);

Expand Down

0 comments on commit 937a861

Please sign in to comment.