Skip to content

Commit

Permalink
mfd: htc-i2cpld: Fix %d confusingly prefixed with 0x in format string
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Wennborg <hans@hanshq.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Hans Wennborg authored and Lee Jones committed Aug 20, 2014
1 parent ddde06b commit 6065c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/htc-i2cpld.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static int htcpld_register_chip_i2c(
}

i2c_set_clientdata(client, chip);
snprintf(client->name, I2C_NAME_SIZE, "Chip_0x%d", client->addr);
snprintf(client->name, I2C_NAME_SIZE, "Chip_0x%x", client->addr);
chip->client = client;

/* Reset the chip */
Expand Down

0 comments on commit 6065c9a

Please sign in to comment.