Skip to content

Commit ff5b5d5

Browse files
author
Markus Armbruster
committed
error: Strip trailing '\n' from error string arguments (again)
Tracked down with scripts/coccinelle/err-bad-newline.cocci. Cc: Peter Xu <[email protected]> Cc: David Gibson <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Acked-by: David Gibson <[email protected]> Reviewed-by: Peter Xu <[email protected]>
1 parent cb3fa1e commit ff5b5d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hw/i386/intel_iommu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,7 +2356,7 @@ static bool vtd_process_iotlb_desc(IntelIOMMUState *s, VTDInvDesc *inv_desc)
23562356
if ((inv_desc->lo & VTD_INV_DESC_IOTLB_RSVD_LO) ||
23572357
(inv_desc->hi & VTD_INV_DESC_IOTLB_RSVD_HI)) {
23582358
error_report_once("%s: invalid iotlb inv desc: hi=0x%"PRIx64
2359-
", lo=0x%"PRIx64" (reserved bits unzero)\n",
2359+
", lo=0x%"PRIx64" (reserved bits unzero)",
23602360
__func__, inv_desc->hi, inv_desc->lo);
23612361
return false;
23622362
}
@@ -2377,7 +2377,7 @@ static bool vtd_process_iotlb_desc(IntelIOMMUState *s, VTDInvDesc *inv_desc)
23772377
am = VTD_INV_DESC_IOTLB_AM(inv_desc->hi);
23782378
if (am > VTD_MAMV) {
23792379
error_report_once("%s: invalid iotlb inv desc: hi=0x%"PRIx64
2380-
", lo=0x%"PRIx64" (am=%u > VTD_MAMV=%u)\n",
2380+
", lo=0x%"PRIx64" (am=%u > VTD_MAMV=%u)",
23812381
__func__, inv_desc->hi, inv_desc->lo,
23822382
am, (unsigned)VTD_MAMV);
23832383
return false;
@@ -2387,7 +2387,7 @@ static bool vtd_process_iotlb_desc(IntelIOMMUState *s, VTDInvDesc *inv_desc)
23872387

23882388
default:
23892389
error_report_once("%s: invalid iotlb inv desc: hi=0x%"PRIx64
2390-
", lo=0x%"PRIx64" (type mismatch: 0x%llx)\n",
2390+
", lo=0x%"PRIx64" (type mismatch: 0x%llx)",
23912391
__func__, inv_desc->hi, inv_desc->lo,
23922392
inv_desc->lo & VTD_INV_DESC_IOTLB_G);
23932393
return false;

target/ppc/mmu-hash64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ static int build_vrma_slbe(PowerPCCPU *cpu, ppc_slb_t *slb)
859859
}
860860

861861
error_report("Bad page size encoding in LPCR[VRMASD]; LPCR=0x"
862-
TARGET_FMT_lx"\n", lpcr);
862+
TARGET_FMT_lx, lpcr);
863863

864864
return -1;
865865
}

0 commit comments

Comments
 (0)