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

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

 



Thanks, I'll fix that and resubmit.

On 13 May 2016 at 14:52, Mike Frysinger <vapier@xxxxxxxxxx> wrote:
> 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
--
To unsubscribe from this list: send the line "unsubscribe util-linux" 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