tools/power turbostat: Enable header iteration option
PATCH 1/1 tools/power turbostat: Enable header iteration option
getopt_long_only() never listed the -N flag. Include N in the short option string so -N is parsed like its long form, allowing users to set header iterations consistently.
Signed-off-by Kaushlendra Kumar <[email protected]>
--- tools/power/x86/turbostat/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/x86/turbostat/turbostat.c +1 -1
@@ -11044,7 +11044,7 @@ void cmdline(int argc, char **argv) } optind =0 ; -while ((opt =getopt_long_only (argc, argv,"+C:c:Dde:hi:Jn:o:qMST:v" , long_options, &option_index)) !=-1 ) { +while ((opt =getopt_long_only (argc, argv,"+C:c:Dde:hi:Jn:N:o:qMST:v" , long_options, &option_index)) !=-1 ) {switch (opt) {case 'a' :parse_add_command (optarg);
Signature · 1 line
2.34.1