diff mbox

intel: fix a conversion format mismatch

Message ID 1489025561-31464-1-git-send-email-cwhuang@linux.org.tw (mailing list archive)
State New, archived
Headers show

Commit Message

Chih-Wei Huang March 9, 2017, 2:12 a.m. UTC
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(-)

Comments

Emil Velikov March 9, 2017, 4:16 p.m. UTC | #1
Hi Chih-Wei,

On 9 March 2017 at 02:12, Chih-Wei Huang <cwhuang@android-x86.org> wrote:
> 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.

> Change-Id: I6c1b0a9e3004aacde0d64662de1144cadff30132
Please drop these and use your s-o-b for upstream submissions.

Thanks
Emil
diff mbox

Patch

diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c
index 42f5f62..5bad93f 100644
--- a/intel/intel_bufmgr.c
+++ b/intel/intel_bufmgr.c
@@ -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