public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: zkabelac@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2/libdm libdm-report.c
Date: Mon, 15 Feb 2010 18:36:00 -0000 [thread overview]
Message-ID: <20100215183648.3915.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2010-02-15 18:36:48
Modified files:
libdm : libdm-report.c
Log message:
Fix dm_report_field_uint64 to really use 64bit.
(function is currently not in use)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-report.c.diff?cvsroot=lvm2&r1=1.34&r2=1.35
--- LVM2/libdm/libdm-report.c 2010/02/15 18:34:00 1.34
+++ LVM2/libdm/libdm-report.c 2010/02/15 18:36:48 1.35
@@ -207,7 +207,7 @@
int dm_report_field_uint64(struct dm_report *rh,
struct dm_report_field *field, const uint64_t *data)
{
- const int value = *data;
+ const uint64_t value = *data;
uint64_t *sortval;
char *repstr;
@@ -221,12 +221,12 @@
return 0;
}
- if (dm_snprintf(repstr, 21, "%d", value) < 0) {
- log_error("dm_report_field_uint64: uint64 too big: %d", value);
+ if (dm_snprintf(repstr, 21, "%" PRIu64 , value) < 0) {
+ log_error("dm_report_field_uint64: uint64 too big: %" PRIu64, value);
return 0;
}
- *sortval = (const uint64_t) value;
+ *sortval = value;
field->sort_value = sortval;
field->report_string = repstr;
next reply other threads:[~2010-02-15 18:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 18:36 zkabelac [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-11-01 13:50 prajnoha
2010-01-07 14:32 zkabelac
2009-01-19 20:53 wysochanski
2009-01-10 3:14 agk
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=20100215183648.3915.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
--cc=lvm2-cvs@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).