Print integer menu items also in hexadecimal form
PATCH 1/1 Print integer menu items also in hexadecimal form
Print integer menu items also in hexadecimal form for better readability on some controls.
Signed-off-by Sakari Ailus <[email protected]>
--- yavta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
yavta.c +2 -2
@@ -1471,8 +1471,8 @@ static void video_query_menu(struct device *dev,printf (" %u: %.32s%s\n" , menu.index, menu.name, menu.index == value ?" (*)" :"" ); else - printf(" %u: %" PRId64 "%s\n", menu.index, - (int64_t )menu.value, + printf(" %u: %" PRId64 " (0x%" PRIx64 ")%s\n", menu.index, + (int64_t )menu.value, (int64_t )menu.value, menu.index == value ? " (*)" : ""); }; }
Signature · 1 line
2.47.3
Hi Sakari,
Thank you for the patch.
Quoted 4 lines · Sakari Ailus
Print integer menu items also in hexadecimal form for better readability on some controls.
Signed-off-by Sakari Ailus <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Quoted 19 lines
--- yavta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)yavta.c +2
-2@@ -1471,8 +1471,8 @@ static void video_query_menu(struct device *dev,printf (" %u: %.32s%s\n" , menu.index, menu.name, menu.index == value ?" (*)" :"" ); else - printf(" %u: %" PRId64 "%s\n", menu.index, - (int64_t )menu.value, + printf(" %u: %" PRId64 " (0x%" PRIx64 ")%s\n", menu.index, + (int64_t )menu.value, (int64_t )menu.value, menu.index == value ? " (*)" : ""); }; }
Signature · 3 lines
Regards, Laurent Pinchart