Skip to contentSkip to conversation

2.4.23-pre7-cset-1.1069.1.112-to-1.1104/arch/ia64/kernel/mca.c

PATCH New Keith Owens 1 participant 1 message Oct 23, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.23-pre7-cset-1.1069.1.112-to-1.1104/arch/ia64/kernel/mca.c

Trivial fixes for correct field type in formats. prfunc_t does not include attribute format so gcc does not pick these up automatically.

arch/ia64/kernel/mca.c.new renamed from arch/ia64/kernel/mca.c +3 -3
@@ -1490,7 +1490,7 @@
 void
 ia64_log_rec_header_print (sal_log_record_header_t *lh, prfunc_t prfunc)
 {
-	prfunc("+Err Record ID: %d    SAL Rev: %2x.%02x\n", lh->id,
+	prfunc("+Err Record ID: %ld    SAL Rev: %2x.%02x\n", lh->id,
 			lh->revision.major, lh->revision.minor);
 	prfunc("+Time: %02x/%02x/%02x%02x %02x:%02x:%02x    Severity %d\n",
 			lh->timestamp.slh_month, lh->timestamp.slh_day,
@@ -1655,11 +1655,11 @@
 		prfunc("  Failure: Data Translation Cache");
 	if (info->itr) {
 		prfunc("  Failure: Instruction Translation Register");
-		prfunc(" ,Slot: %d", info->tr_slot);
+		prfunc(" ,Slot: %ld", info->tr_slot);
 	}
 	if (info->dtr) {
 		prfunc("  Failure: Data Translation Register");
-		prfunc(" ,Slot: %d", info->tr_slot);
+		prfunc(" ,Slot: %ld", info->tr_slot);
 	}
 	if (info->mc)
 		prfunc(" ,MC: Corrected");