Message ID | 1438358041-18021-6-git-send-email-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDJONKHTZ4PRB5NU52WQKGQEWDV2GTI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 10BF722D9C for <linaro@patches.linaro.org>; Fri, 31 Jul 2015 15:55:34 +0000 (UTC) Received: by wixh2 with SMTP id h2sf9964748wix.0 for <linaro@patches.linaro.org>; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=TvQlWNPumxh1jVAgU66WIBNxYZ5XOf3fIqTnPzVGRaI=; b=a479o3Blkz+xznxMJeGUMOT5ZE8rst2l8rSpVpku0tfRaXDWjzChVjlptlfD0zbylS W63GfmA9T1KYGDM0zv2Yp7moK6Pv8hE/S3tHRPQVngC7EM5X+QFKROiZBTgTBa+JyqGe hjC36gNhk9n5LOE5x+7O4CmOsWFSR6Jm5CC7gTJlgvfiBvc3SjeTefGTCQMzd3dzv/Yr aJ8/xkKEktB6C/V/bZQ5heOJ7sxTHtTYnEkMOCxvz7ol4XwIkN818HHrN+kPd6N07++e Sz4PYn+oYRR2buTNyW6SnqeAlBBKseEGCjlhCjDVBgdNiFyywTZ2BdMaJkURLHQACABy fyjw== X-Gm-Message-State: ALoCoQkZ815+XhZngDMzzRJeo37/vf02+Ss3OFMxaIiqrHFWkAGMRKI1j7z1GfCqIV6KTleY16zr X-Received: by 10.152.27.130 with SMTP id t2mr1151668lag.2.1438358133344; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.40 with SMTP id kv8ls310729lac.94.gmail; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) X-Received: by 10.152.238.2 with SMTP id vg2mr3834466lac.12.1438358133183; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id bc7si4101655lbc.144.2015.07.31.08.55.33 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 08:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbyj8 with SMTP id yj8so48849167lbb.0 for <patchwork-forward@linaro.org>; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) X-Received: by 10.112.120.134 with SMTP id lc6mr3813832lbb.86.1438358133107; Fri, 31 Jul 2015 08:55:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp473095lba; Fri, 31 Jul 2015 08:55:32 -0700 (PDT) X-Received: by 10.140.107.101 with SMTP id g92mr5286900qgf.58.1438358130277; Fri, 31 Jul 2015 08:55:30 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 202si6304156qhs.91.2015.07.31.08.55.29 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 Jul 2015 08:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:44869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1ZLCef-00024g-HS for patch@linaro.org; Fri, 31 Jul 2015 11:55:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1ZLCdp-0000z1-0W for qemu-devel@nongnu.org; Fri, 31 Jul 2015 11:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1ZLCdh-0005uK-0k for qemu-devel@nongnu.org; Fri, 31 Jul 2015 11:54:36 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:36600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1ZLCdg-0005uF-S2 for qemu-devel@nongnu.org; Fri, 31 Jul 2015 11:54:28 -0400 Received: by wicgj17 with SMTP id gj17so23708495wic.1 for <qemu-devel@nongnu.org>; Fri, 31 Jul 2015 08:54:28 -0700 (PDT) X-Received: by 10.180.198.199 with SMTP id je7mr7711586wic.34.1438358068182; Fri, 31 Jul 2015 08:54:28 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k2sm5127108wif.4.2015.07.31.08.54.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 08:54:27 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 414783E0F74; Fri, 31 Jul 2015 16:54:23 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org> To: mttcg@listserver.greensocs.com, mark.burton@greensocs.com, fred.konrad@greensocs.com Date: Fri, 31 Jul 2015 16:53:55 +0100 Message-Id: <1438358041-18021-6-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1438358041-18021-1-git-send-email-alex.bennee@linaro.org> References: <1438358041-18021-1-git-send-email-alex.bennee@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.178 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, =?UTF-8?q?Alex=20Benn=C3=A9e?= <alex.bennee@linaro.org> Subject: [Qemu-devel] [kvm-unit-tests PATCH v5 05/11] lib/printf: support the %u unsigned fmt field X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alex.bennee@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
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: