All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: mttcg@listserver.greensocs.com, mark.burton@greensocs.com,
	fred.konrad@greensocs.com
Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org,
	a.spyridakis@virtualopensystems.com, drjones@redhat.com,
	a.rigo@virtualopensystems.com, claudio.fontana@huawei.com,
	kvm@vger.kernel.org, "Alex Bennée" <alex.bennee@linaro.org>
Subject: [kvm-unit-tests PATCH v5 05/11] lib/printf: support the %u unsigned fmt field
Date: Fri, 31 Jul 2015 16:53:55 +0100	[thread overview]
Message-ID: <1438358041-18021-6-git-send-email-alex.bennee@linaro.org> (raw)
In-Reply-To: <1438358041-18021-1-git-send-email-alex.bennee@linaro.org>

---
 lib/printf.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/printf.c b/lib/printf.c
index 89308fb..5d83605 100644
--- a/lib/printf.c
+++ b/lib/printf.c
@@ -180,6 +180,19 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list va)
 		break;
 	    }
 	    break;
+	case 'u':
+	    switch (nlong) {
+	    case 0:
+		print_unsigned(&s, va_arg(va, unsigned), 10, props);
+		break;
+	    case 1:
+		print_unsigned(&s, va_arg(va, unsigned long), 10, props);
+		break;
+	    default:
+		print_unsigned(&s, va_arg(va, unsigned long long), 10, props);
+		break;
+	    }
+	    break;
 	case 'x':
 	    switch (nlong) {
 	    case 0:
-- 
2.5.0


WARNING: multiple messages have this Message-ID (diff)
From: "Alex Bennée" <alex.bennee@linaro.org>
To: mttcg@listserver.greensocs.com, mark.burton@greensocs.com,
	fred.konrad@greensocs.com
Cc: peter.maydell@linaro.org, drjones@redhat.com,
	kvm@vger.kernel.org, a.spyridakis@virtualopensystems.com,
	claudio.fontana@huawei.com, a.rigo@virtualopensystems.com,
	qemu-devel@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>
Subject: [Qemu-devel] [kvm-unit-tests PATCH v5 05/11] lib/printf: support the %u unsigned fmt field
Date: Fri, 31 Jul 2015 16:53:55 +0100	[thread overview]
Message-ID: <1438358041-18021-6-git-send-email-alex.bennee@linaro.org> (raw)
In-Reply-To: <1438358041-18021-1-git-send-email-alex.bennee@linaro.org>

---
 lib/printf.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/printf.c b/lib/printf.c
index 89308fb..5d83605 100644
--- a/lib/printf.c
+++ b/lib/printf.c
@@ -180,6 +180,19 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list va)
 		break;
 	    }
 	    break;
+	case 'u':
+	    switch (nlong) {
+	    case 0:
+		print_unsigned(&s, va_arg(va, unsigned), 10, props);
+		break;
+	    case 1:
+		print_unsigned(&s, va_arg(va, unsigned long), 10, props);
+		break;
+	    default:
+		print_unsigned(&s, va_arg(va, unsigned long long), 10, props);
+		break;
+	    }
+	    break;
 	case 'x':
 	    switch (nlong) {
 	    case 0:
-- 
2.5.0

  parent reply	other threads:[~2015-07-31 15:54 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-31 15:53 [kvm-unit-tests PATCH v5 00/11] My current MTTCG tests Alex Bennée
2015-07-31 15:53 ` [Qemu-devel] " Alex Bennée
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 01/11] arm/run: set indentation defaults for emacs Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 02/11] README: add some CONTRIBUTING notes Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 03/11] configure: emit HOST=$host to config.mak Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 04/11] arm/run: introduce usingkvm var and use it Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-08-02 16:36   ` Andrew Jones
2015-08-02 16:36     ` Andrew Jones
2015-07-31 15:53 ` Alex Bennée [this message]
2015-07-31 15:53   ` [Qemu-devel] [kvm-unit-tests PATCH v5 05/11] lib/printf: support the %u unsigned fmt field Alex Bennée
2015-07-31 18:25   ` Andrew Jones
2015-07-31 18:25     ` Andrew Jones
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 06/11] lib/arm: add flush_tlb_page mmu function Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 18:35   ` Andrew Jones
2015-07-31 18:35     ` Andrew Jones
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 07/11] new arm/tlbflush-test: TLB torture test Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 18:51   ` Andrew Jones
2015-07-31 18:51     ` Andrew Jones
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 08/11] arm/unittests.cfg: add the tlbflush tests Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 18:53   ` Andrew Jones
2015-07-31 18:53     ` Andrew Jones
2015-07-31 15:53 ` [kvm-unit-tests PATCH v5 09/11] arm: query /dev/kvm for maximum vcpus Alex Bennée
2015-07-31 15:53   ` [Qemu-devel] " Alex Bennée
2015-07-31 19:17   ` Andrew Jones
2015-07-31 19:17     ` Andrew Jones
2015-08-02 16:40     ` Andrew Jones
2015-08-02 16:40       ` Andrew Jones
2015-07-31 15:54 ` [kvm-unit-tests PATCH v5 10/11] new: add isaac prng library from CCAN Alex Bennée
2015-07-31 15:54   ` [Qemu-devel] " Alex Bennée
2015-07-31 19:22   ` Andrew Jones
2015-07-31 19:22     ` Andrew Jones
2015-07-31 15:54 ` [kvm-unit-tests PATCH v5 11/11] new: arm/barrier-test for memory barriers Alex Bennée
2015-07-31 15:54   ` [Qemu-devel] " Alex Bennée
2015-07-31 19:30   ` Andrew Jones
2015-07-31 19:30     ` Andrew Jones
2015-08-03 10:02   ` alvise rigo
2015-08-03 10:02     ` [Qemu-devel] " alvise rigo
2015-08-03 10:30     ` Alex Bennée
2015-08-03 10:30       ` [Qemu-devel] " Alex Bennée
2015-08-03 10:34       ` alvise rigo
2015-08-03 10:34         ` [Qemu-devel] " alvise rigo
2015-08-03 16:06         ` Alex Bennée
2015-08-03 16:06           ` [Qemu-devel] " Alex Bennée
2015-08-03 16:46           ` alvise rigo
2015-08-03 16:46             ` [Qemu-devel] " alvise rigo
2015-08-04  7:30             ` Alex Bennée
2015-08-04  7:30               ` [Qemu-devel] " Alex Bennée
2015-08-02 16:44 ` [Qemu-devel] [kvm-unit-tests PATCH v5 00/11] My current MTTCG tests Andrew Jones
2015-08-02 16:44   ` Andrew Jones

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=1438358041-18021-6-git-send-email-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=a.rigo@virtualopensystems.com \
    --cc=a.spyridakis@virtualopensystems.com \
    --cc=claudio.fontana@huawei.com \
    --cc=drjones@redhat.com \
    --cc=fred.konrad@greensocs.com \
    --cc=kvm@vger.kernel.org \
    --cc=mark.burton@greensocs.com \
    --cc=mttcg@listserver.greensocs.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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 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.