From d80689f47847224ca3bef6c11183e0996ee29ab9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 08:33:52 +0200 Subject: test uppercase behex and unhex + fix unhex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test/test.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/test/test.c') diff --git a/src/test/test.c b/src/test/test.c index 6ff3311..e0481fc 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -369,10 +369,15 @@ static void crtc_information(libgamma_crtc_state_t* restrict crtc) libgamma_perror(" (error) EDID", info.edid_error); else { - char* edid = libgamma_behex_edid(info.edid, info.edid_length); - printf(" EDID: %s\n", edid); + char* edid_lc = libgamma_behex_edid(info.edid, info.edid_length); + unsigned char* edid_raw = libgamma_unhex_edid(edid_lc); + char* edid_uc = libgamma_behex_edid_uppercase(edid_raw, info.edid_length);; + printf(" EDID: %s\n", edid_lc); + printf(" EDID (uppercase): %s\n", edid_uc); printf(" EDID (length): %lu\n", info.edid_length); - free(edid); + free(edid_lc); + free(edid_raw); + free(edid_uc); } } print(size_t, LIBGAMMA_CRTC_INFO_WIDTH_MM, "width", width_mm); -- cgit v1.2.3-70-g09d2