mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 04:10:40 +00:00
drivers/sensors/ina219.c: Fix a syslog format
This commit is contained in:
parent
41f22bdba0
commit
e3617dd8fb
1 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
|
@ -259,7 +260,7 @@ static int ina219_readpower(FAR struct ina219_dev_s *priv,
|
|||
|
||||
buffer->current = (int32_t)tmp;
|
||||
|
||||
sninfo("Voltage: %u uV, Current: %d uA\n",
|
||||
sninfo("Voltage: %" PRIu32 " uV, Current: %" PRId32 " uA\n",
|
||||
buffer->voltage, buffer->current);
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue