[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/2] firmware/vgabios: Fix incorrect formatting string
bios_len is an long, so requires %ld rather than %d. Coverity ID: 1055813 Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Keir Fraser <keir@xxxxxxx> CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- tools/firmware/vgabios/biossums.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/vgabios/biossums.c b/tools/firmware/vgabios/biossums.c index d5816f4..6288498 100644 --- a/tools/firmware/vgabios/biossums.c +++ b/tools/firmware/vgabios/biossums.c @@ -161,7 +161,7 @@ int main(int argc, char* argv[]) exit(EXIT_FAILURE); } if (fwrite(bios_data, 1, bios_len, stream) < bios_len) { - printf("Error writing %d KBytes to %s.\n", bios_len / 1024, argv[1]); + printf("Error writing %ld KBytes to %s.\n", bios_len / 1024, argv[1]); fclose(stream); exit(EXIT_FAILURE); } -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |