[PATCH 3/6] state: state_uint32_create: use %u to print unsigned variable
Marc Kleine-Budde
mkl at pengutronix.de
Wed May 6 05:51:28 PDT 2015
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
common/state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/state.c b/common/state.c
index b677a9f01d25..7f12341bd578 100644
--- a/common/state.c
+++ b/common/state.c
@@ -162,7 +162,7 @@ static struct state_variable *state_uint32_create(struct state *state,
su32 = xzalloc(sizeof(*su32));
param = dev_add_param_int(&state->dev, name, state_set_dirty,
- NULL, &su32->value, "%d", state);
+ NULL, &su32->value, "%u", state);
if (IS_ERR(param)) {
free(su32);
return ERR_CAST(param);
--
2.1.4
More information about the barebox
mailing list