Re: [PATCH] version: fix DTrace version string

Eugene Loh <[email protected]>
Newsgroups dev.linux.lists.dtrace
Message-ID <[email protected]>
But this patch fails testing.

test/unittest/dtrace-util/tst.APIVersion.d
Diff against expected:
-dtrace: Oracle D x.y.z
+dtrace: D x.y.z

On 8/29/25 15:44, Elena Zannoni wrote:
> Reviewed-by: Elena Zannoni <[email protected]>
>
> On 8/29/25 12:45 PM, Kris Van Hees wrote:
>> Signed-off-by: Kris Van Hees <[email protected]>
>>
>> diff --git a/libdtrace/mkvers b/libdtrace/mkvers
>>   	if ($3 == 0) {
>>   		printf "\n#define DT_VERS_LATEST\tDT_VERS_%d_%d\n", $1, $2;
>> -		printf "#define DT_VERS_STRING\t\"Oracle D %d.%d\"\n", $1, $2;
>> +		printf "#define DT_VERS_STRING\t\"D %d.%d\"\n", $1, $2;
>>   	} else {
>>   		printf "\n#define DT_VERS_LATEST\tDT_VERS_%d_%d_%d\n", $1, $2, $3;
>> -		printf "#define DT_VERS_STRING\t\"Oracle D %d.%d.%d\"\n", $1, $2, $3;
>> +		printf "#define DT_VERS_STRING\t\"D %d.%d.%d\"\n", $1, $2, $3;
>>   	}
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.