[PATCH v2 2/2] drivers: replace printf with fprintf for debug functions

Hemant Agrawal hemant.agrawal at oss.nxp.com
Tue Jul 2 19:26:03 CEST 2024


On 02-07-2024 20:41, Stephen Hemminger wrote:
> On Tue,  2 Jul 2024 16:10:13 +0530
> Hemant Agrawal <hemant.agrawal at nxp.com> wrote:
>
>>   
>> -	printf("\n JD before conversion\n");
>> +	fprintf(stdout, "\n JD before conversion\n");
>>   	for (i = 0; i < 12; i++)
>> -		printf("\n 0x%08x", ctx->jobdes.desc[i]);
>> +		fprintf(stdout, "\n 0x%08x", ctx->jobdes.desc[i]);
> Don't see the point of this change, printf() and fprintf(stdout) are same thing.

Yes, but no harm in this change. It was originally a script based change 
in the files. Now the code is consistent - only using fprintf. Either 
with f or with stdout.



More information about the dev mailing list