Commit b1970013d4da5579cf33f0da84715d49d9690d49

Authored by Heinrich Schuchardt
Committed by Tom Rini
1 parent 6e00104880

cmd: gpio: use correct printf code

gpio is defined as unsigned int. So we should use %u when calling printf().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -213,7 +213,7 @@
213 213 }
214 214 gpio_direction_output(gpio, value);
215 215 }
216   - printf("gpio: pin %s (gpio %i) value is ", str_gpio, gpio);
  216 + printf("gpio: pin %s (gpio %u) value is ", str_gpio, gpio);
217 217 if (IS_ERR_VALUE(value))
218 218 printf("unknown (ret=%d)\n", value);
219 219 else