Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Use a better choice for the print format string.



details:   https://anonhg.NetBSD.org/src/rev/fa9bd8e75b92
branches:  trunk
changeset: 372484:fa9bd8e75b92
user:      brad <brad%NetBSD.org@localhost>
date:      Thu Dec 01 02:29:37 2022 +0000

description:
Use a better choice for the print format string.

diffstat:

 sys/dev/i2c/bmx280.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r d6ed0b22f12f -r fa9bd8e75b92 sys/dev/i2c/bmx280.c
--- a/sys/dev/i2c/bmx280.c      Thu Dec 01 00:48:05 2022 +0000
+++ b/sys/dev/i2c/bmx280.c      Thu Dec 01 02:29:37 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bmx280.c,v 1.5 2022/12/01 00:47:51 brad Exp $  */
+/*     $NetBSD: bmx280.c,v 1.6 2022/12/01 02:29:37 brad Exp $  */
 
 /*
  * Copyright (c) 2022 Brad Spencer <brad%anduin.eldar.org@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bmx280.c,v 1.5 2022/12/01 00:47:51 brad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bmx280.c,v 1.6 2022/12/01 02:29:37 brad Exp $");
 
 /*
   Driver for the Bosch BMP280/BME280 temperature, humidity (sometimes) and
@@ -1065,10 +1065,10 @@
                                                uint64_t q;
 
                                                q = (uint64_t)comp_hum * 1000000;
-                                               DPRINTF(sc, 1, ("%s: Refresh humidity Q 1: %lld\n", __func__, q));
+                                               DPRINTF(sc, 1, ("%s: Refresh humidity Q 1: %jd\n", __func__, (uintmax_t)q));
                                                q = q / 1024;
 
-                                               DPRINTF(sc, 1, ("%s: Refresh humidity Q 2: %lld\n", __func__, q));
+                                               DPRINTF(sc, 1, ("%s: Refresh humidity Q 2: %jd\n", __func__, (uintmax_t)q));
 
                                                edata->value_cur = (uint32_t) q;
                                                edata->state = ENVSYS_SVALID;



Home | Main Index | Thread Index | Old Index