Skip to contentSkip to conversation

intel: fix a conversion format mismatch

PATCH In review Chih-Wei Huang 2 participants 2 messages Mar 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel: fix a conversion format mismatch

To avoid the warning:

external/libdrm/intel/intel_bufmgr.c:362:20: warning: more '%' conversions than data arguments [-Wformat]

        fprintf(stderr, "%s: Mappable aperture size hardcoded to 64MiB\n");
                         ~^

Change-Id: I6c1b0a9e3004aacde0d64662de1144cadff30132

---
 intel/intel_bufmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
intel/intel_bufmgr.c +1 -1
index 42f5f62..5bad93f 100644
@@ -359,7 +359,7 @@ static size_t
 drm_intel_probe_agp_aperture_size(int fd)
 {
 	/* Nothing seems to rely on this value on Android anyway... */
-	fprintf(stderr, "%s: Mappable aperture size hardcoded to 64MiB\n");
+	fprintf(stderr, "%s: Mappable aperture size hardcoded to 64MiB\n", __func__);
 	return 64 * 1024 * 1024;
 }
 #endif
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Hi Chih-Wei,

Quoted 6 lines · Chih-Wei Huang

To avoid the warning:

external/libdrm/intel/intel_bufmgr.c:362:20: warning: more '%' conversions than data arguments [-Wformat]

        fprintf(stderr, "%s: Mappable aperture size hardcoded to 64MiB\n");
                         ~^

This seems to depend on the patch from Tomasz, which removes the libpciaccess dependency and stubs the API.
Personally I don't mind having that one land and if so, this fix should be squashed.

Quoted 1 line

Change-Id: I6c1b0a9e3004aacde0d64662de1144cadff30132

Please drop these and use your s-o-b for upstream submissions.

Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel