From 627f972fac66dc3f1b695f1faa57815ec2d9ec7d Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 11 Apr 2021 18:00:12 +0200 Subject: [PATCH] LocalCamera: Fix Wformat warnings reported by Clang --- src/zm_local_camera.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index b464c4d96..7960224a3 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -1414,20 +1414,20 @@ bool LocalCamera::GetCurrentSettings( if ( verbose ) output_ptr += sprintf( output_ptr, - " %s (0x%02hhx%02hhx%02hhx%02hhx)\n", + " %s (0x%02x%02x%02x%02x)\n", format.description, - (format.pixelformat>>24)&0xff, - (format.pixelformat>>16)&0xff, - (format.pixelformat>>8)&0xff, - format.pixelformat&0xff); + (format.pixelformat >> 24) & 0xff, + (format.pixelformat >> 16) & 0xff, + (format.pixelformat >> 8) & 0xff, + format.pixelformat & 0xff); else output_ptr += sprintf( output_ptr, - "0x%02hhx%02hhx%02hhx%02hhx/", - (format.pixelformat>>24)&0xff, - (format.pixelformat>>16)&0xff, - (format.pixelformat>>8)&0xff, - (format.pixelformat)&0xff); + "0x%02x%02x%02x%02x/", + (format.pixelformat >> 24) & 0xff, + (format.pixelformat >> 16) & 0xff, + (format.pixelformat >> 8) & 0xff, + format.pixelformat & 0xff); } while ( formatIndex++ >= 0 ); if ( !verbose )