Skip to content

Commit f066b8f

Browse files
JustinStittjoergroedel
authored andcommitted
drivers: iommu: fix clang -wformat warning
When building with Clang we encounter the following warning: | drivers/iommu/msm_iommu.c:603:6: error: format specifies type 'unsigned | short' but the argument has type 'int' [-Werror,-Wformat] sid); `sid` is an int, use the proper format specifier `%x`. Link: ClangBuiltLinux#378 Reported-by: Nathan Chancellor <nathan@kernel.org> Suggested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Justin Stitt <justinstitt@google.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://lore.kernel.org/r/20220721210331.4012015-1-justinstitt@google.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent a111daf commit f066b8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/msm_iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static int insert_iommu_master(struct device *dev,
603603

604604
for (sid = 0; sid < master->num_mids; sid++)
605605
if (master->mids[sid] == spec->args[0]) {
606-
dev_warn(dev, "Stream ID 0x%hx repeated; ignoring\n",
606+
dev_warn(dev, "Stream ID 0x%x repeated; ignoring\n",
607607
sid);
608608
return 0;
609609
}

0 commit comments

Comments
 (0)