Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Fix debug printf formats.
details: https://anonhg.NetBSD.org/src/rev/1df213327070
branches: trunk
changeset: 968351:1df213327070
user: martin <martin%NetBSD.org@localhost>
date: Mon Jan 13 09:53:54 2020 +0000
description:
Fix debug printf formats.
diffstat:
sys/dev/i2c/gttwsi_core.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r aea04ec4a1f0 -r 1df213327070 sys/dev/i2c/gttwsi_core.c
--- a/sys/dev/i2c/gttwsi_core.c Mon Jan 13 09:00:59 2020 +0000
+++ b/sys/dev/i2c/gttwsi_core.c Mon Jan 13 09:53:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gttwsi_core.c,v 1.13 2020/01/13 00:09:28 thorpej Exp $ */
+/* $NetBSD: gttwsi_core.c,v 1.14 2020/01/13 09:53:54 martin Exp $ */
/*
* Copyright (c) 2008 Eiji Kawauchi.
* All rights reserved.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.13 2020/01/13 00:09:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.14 2020/01/13 09:53:54 martin Exp $");
#include "locators.h"
#include <sys/param.h>
@@ -98,7 +98,7 @@
const uint32_t val = bus_space_read_4(sc->sc_bust, sc->sc_bush,
sc->sc_regmap[reg]);
#ifdef TWSI_DEBUG
- printf("I2C:R:[%u]%02x:%02x\n", reg, sc->sc_regmap[reg], val);
+ printf("I2C:R:[%" PRIu32 "]%02" PRIxBUSSIZE ":%02" PRIx32 "\n", reg, sc->sc_regmap[reg], val);
#else
DELAY(TWSI_READ_DELAY);
#endif
@@ -111,7 +111,7 @@
bus_space_write_4(sc->sc_bust, sc->sc_bush, reg, val);
#ifdef TWSI_DEBUG
- printf("I2C:W:[%u]%02x:%02x\n", reg, sc->sc_regmap[reg], val);
+ printf("I2C:W:[%" PRIu32 "]%02" PRIxBUSSIZE ":%02" PRIx32 "\n", reg, sc->sc_regmap[reg], val);
#else
DELAY(TWSI_WRITE_DELAY);
#endif
Home |
Main Index |
Thread Index |
Old Index