Re: [PATCH v2 1/3] libfdisk: Add support for altering GPT size

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

 



On 12 May 2016 12:54, Sassan Panahinejad wrote:
> +static int gpt_check_table_overlap(struct fdisk_context *cxt,
> +				   uint64_t first_usable,
> +				   uint64_t last_usable)
> +{
> ...
> +		if (gpt_partition_start(&gpt->ents[i]) < first_usable) {
> +			fdisk_warnx(cxt, _("Partition #%u out of range (minimal start is %ju sectors)"),
> +		                    i + 1, first_usable);

%j is for uintmax_t but this is uint64_t, so you'll want to use ..." PRIu64 "...

> +		if (gpt_partition_end(&gpt->ents[i]) > last_usable) {
> +			fdisk_warnx(cxt, _("Partition #%u out of range (maximal end is %ju sectors)"),
> +		                    i + 1, last_usable - 1);

same here
-mike

Attachment: signature.asc
Description: Digital signature


[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