[PATCH mtd-utils] flash_otp_write: fix format string warning
Artem Bityutskiy
dedekind1 at gmail.com
Wed Mar 6 04:19:06 EST 2013
On Wed, 2013-02-20 at 17:41 +0100, Uwe Kleine-König wrote:
> diff --git a/flash_otp_write.c b/flash_otp_write.c
> index d407ebb..41cf1c5 100644
> --- a/flash_otp_write.c
> +++ b/flash_otp_write.c
> @@ -58,7 +58,7 @@ int main(int argc,char *argv[])
> return errno;
> }
>
> - printf("Writing OTP user data on %s at offset 0x%lx\n", argv[2], offset);
> + printf("Writing OTP user data on %s at offset 0x%lx\n", argv[2], (unsigned long)offset);
Thanks for the clean-up, but I think last time we discussed this we
agreed to use the new C99 "PRIx64" stuff, and introduced a helper
PRIdoff_t helper which we use for 'off_t' printing. See commit
56840a198a70604ece50d9d727cebcc28930ab4c for example.
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list