From 1f8d04b8e1d25e57d5ee77b8325fcd25227d6cff Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 25 Jun 2018 22:16:51 +0200 Subject: [PATCH] egl-configs: print hex too --- support/android/egl-configs/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/support/android/egl-configs/src/main.rs b/support/android/egl-configs/src/main.rs index 5963f18a5e2..5fada2458ee 100644 --- a/support/android/egl-configs/src/main.rs +++ b/support/android/egl-configs/src/main.rs @@ -78,7 +78,11 @@ unsafe fn run() { ] { let mut value = -1; check!(GetConfigAttrib(display, config, attr as i32, &mut value)); - println!(" {} = {}", attr_name, value) + if value < 10 { + println!(" {}\t = {}", attr_name, value) + } else { + println!(" {}\t= {} = 0x{:x}", attr_name, value, value) + } } } }