[OpenBIOS] [commit] r1067 - trunk/openbios-devel/fs/hfsplus

repository service svn at openbios.org
Sun Oct 21 20:14:07 CEST 2012


Author: mcayland
Date: Sun Oct 21 20:14:06 2012
New Revision: 1067
URL: http://tracker.coreboot.org/trac/openbios/changeset/1067

Log:
amd64: Fix compilation from last commit to implement "dir" word for HFS+
filesystem.

UInt64 is always defined as long long, so use %lld in the printf
format string rather than PRId64 which can change size depending upon
platform.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/fs/hfsplus/hfsp_fs.c

Modified: trunk/openbios-devel/fs/hfsplus/hfsp_fs.c
==============================================================================
--- trunk/openbios-devel/fs/hfsplus/hfsp_fs.c	Sun Oct  7 17:26:53 2012	(r1066)
+++ trunk/openbios-devel/fs/hfsplus/hfsp_fs.c	Sun Oct 21 20:14:06 2012	(r1067)
@@ -551,7 +551,7 @@
 	    if (r.record.type == HFSP_FILE) {
 		/* Grab the file entry */
 		hfsp_cat_file *file = &r.record.u.file;
-		forth_printf("% 10" PRId64 " ", file->data_fork.total_size);
+		forth_printf("% 10lld ", file->data_fork.total_size);
 		print_date(file->create_date);
 		forth_printf(" %s\n", name);
 		found = -1;



More information about the OpenBIOS mailing list