From: mpatocka@sourceware.org <mpatocka@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/label label.c
Date: Mon, 13 Jul 2009 21:24:08 -0000 [thread overview]
Message-ID: <20090713212349.16145.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mpatocka at sourceware.org 2009-07-13 21:23:48
Modified files:
lib/label : label.c
Log message:
Suppress warning on 64-bit big-endian computers (Sparc 64).
xlate64 produces unsigned long long type, but PRIu64 is defined
to accept argument unsigned long type (on 64-bit machines).
On existing machines, both types have the same size, so it works,
but it is still wrong and produces a warning.
Fix it by using a cast to uint64_t --- according to the standard,
PRIu64 argument matches type uint64_t.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/label/label.c.diff?cvsroot=lvm2&r1=1.47&r2=1.48
--- LVM2/lib/label/label.c 2009/07/08 22:18:32 1.47
+++ LVM2/lib/label/label.c 2009/07/13 21:23:48 1.48
@@ -138,7 +138,7 @@
log_info("%s: Label for sector %" PRIu64
" found at sector %" PRIu64
" - ignoring", dev_name(dev),
- xlate64(lh->sector_xl),
+ (uint64_t)xlate64(lh->sector_xl),
sector + scan_sector);
continue;
}
next reply other threads:[~2009-07-13 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 21:24 mpatocka [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-08-28 13:28 LVM2/lib/label label.c mbroz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090713212349.16145.qmail@sourceware.org \
--to=mpatocka@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.