Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dad2d3f authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds
Browse files

[PATCH] uml: fix 2 harmless cast warnings for 64-bit



Fix two harmless warnings in 64-bit compilation (the 2nd doesn't trigger for
now because of a missing __attribute((format)) for cow_printf, but next
patches fix that).

Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f2ea3940
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -210,8 +210,9 @@ int write_cow_header(char *cow_file, int fd, char *backing_file,


	err = -EINVAL;
	err = -EINVAL;
	if(strlen(backing_file) > sizeof(header->backing_file) - 1){
	if(strlen(backing_file) > sizeof(header->backing_file) - 1){
		/* Below, %zd is for a size_t value */
		cow_printf("Backing file name \"%s\" is too long - names are "
		cow_printf("Backing file name \"%s\" is too long - names are "
			   "limited to %d characters\n", backing_file,
			   "limited to %zd characters\n", backing_file,
			   sizeof(header->backing_file) - 1);
			   sizeof(header->backing_file) - 1);
		goto out_free;
		goto out_free;
	}
	}
+1 −1

File changed.

Contains only whitespace changes.