Re: [PATCH 11/11] blkparse: add option to emit a specific trace protocol version

Johannes Thumshirn <[email protected]>
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-btrace
Message-ID <[email protected]>
On 16.07.26 14:13, Damien Le Moal wrote:
>> @@ -3298,6 +3337,17 @@ int main(int argc, char *argv[])
>>   		case 'M':
>>   			bin_output_msgs = 0;
>>   			break;
>> +		case OPT_TRACE_VERSION: {
> 		case OPT_TRACE_VERSION:
> 			dump_trace_version = atoi(optarg);
> 			if (dump_trace_version != 1 &&
> 			    dump_trace_version != 2) {
> 				usage(argv[0]);
> 				return 1;
> 			}
> 
> Is a lot simpler I think.

Definitively. Will do.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.