Re: [PATCH 1/2] blkid: fix display of device size

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

 



On 10/03/10 10:08, Pascal Terjan wrote:
blkid_loff_t is uint64 so use %llu not %zd in debug

Hmm it's int64 here.

In general I find printing ints that vary depending on
platform and config to be best supported on C99 with %j
http://www.pixelbeat.org/programming/gcc/int_types/

So in this case:

DBG(DEBUG_LOWPROBE, printf("ready for low-probing, offset=%jd, size=%jd\n",
                           (intmax_t) pr->off, (intmax_t) pr->size));

cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux