shithub: lwext4

Download patch

ref: 696059627084945d5b51f1a161731b4bc581ee58
parent: e7519e14cb64ecc2ea8dcff1207e223432dd51c3
author: gkostka <kostka.grzegorz@gmail.com>
date: Sun Nov 29 05:58:52 EST 2015

Fix compile warnings

--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -544,8 +544,8 @@
 
 		switch (jbd_get32(header, blocktype)) {
 		case JBD_DESCRIPTOR_BLOCK:
-			ext4_dbg(DEBUG_JBD, "Descriptor block: %u, "
-					    "trans_id: %u\n",
+			ext4_dbg(DEBUG_JBD, "Descriptor block: %" PRIu32", "
+					    "trans_id: %" PRIu32"\n",
 					    this_block, this_trans_id);
 			if (action == ACTION_SCAN)
 				jbd_debug_descriptor_block(jbd_fs,
@@ -562,14 +562,14 @@
 
 			break;
 		case JBD_COMMIT_BLOCK:
-			ext4_dbg(DEBUG_JBD, "Commit block: %u, "
-					    "trans_id: %u\n",
+			ext4_dbg(DEBUG_JBD, "Commit block: %" PRIu32", "
+					    "trans_id: %" PRIu32"\n",
 					    this_block, this_trans_id);
 			this_trans_id++;
 			break;
 		case JBD_REVOKE_BLOCK:
-			ext4_dbg(DEBUG_JBD, "Revoke block: %u, "
-					    "trans_id: %u\n",
+			ext4_dbg(DEBUG_JBD, "Revoke block: %" PRIu32", "
+					    "trans_id: %" PRIu32"\n",
 					    this_block, this_trans_id);
 			if (action == ACTION_REVOKE) {
 				info->this_trans_id = this_trans_id;