[PATCH 2/3] state: uint8: use %u as format string

Marc Kleine-Budde mkl at pengutronix.de
Mon Jun 15 06:29:05 PDT 2015


Cc: Jan Luebbe <jluebbe at debian.org>
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 7076f5764d1f..e30f72660797 100644
--- a/common/state.c
+++ b/common/state.c
@@ -172,7 +172,7 @@ static struct state_variable *state_uint8_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