Re: [PATCH v2 5/5] block: add trace messages to zone write plugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14.07.25 18:43, Bart Van Assche wrote:
> On 7/14/25 7:38 AM, Johannes Thumshirn wrote:
>> +	TP_printk("%d,%d zone %u, BIO %llu + %u",
>> +		  MAJOR(__entry->dev), MINOR(__entry->dev), __entry->zno,
>> +		  (unsigned long long)__entry->sector,
>> +		  __entry->nr_segs)
> 
> Fifteen years ago it was essential in kernel code to cast u64 values
> when formatting these with %llu but that's no longer necessary today. I
> think that the "unsigned long long" cast can be left out since nowadays
> u64 is a synonym for unsigned long long in the Linux kernel. Otherwise
> this patch looks good to me.

If you look at the rest of include/trace/events/block.h every other 
TP_printk() invocation that has sector is doing this cast.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux