From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 58D0A431FAE for ; Thu, 19 Jan 2012 16:06:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NlJtqj5NI4Cm for ; Thu, 19 Jan 2012 16:06:37 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id C96E9431FAF for ; Thu, 19 Jan 2012 16:06:37 -0800 (PST) Received: from odin.local (nancy.schnouki.net [78.238.0.45]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 565AD6C000B; Fri, 20 Jan 2012 01:06:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1327017990; bh=sGUgKrRkvWOHhr2dGoQEL2FOO+aYufcSeDnImmeUeK4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=Xhf3eyJjLBbgrZYaKKR7QuQdiOPRPOBGqhhMSka1fHPnTaidDmK9/A8nOBayD4827 fW4Lgf5LaVITcikqrFqrkXcnc5fa9+VpibooPuAGdkJs0j1rCTANl8gf+ZPwjUGpST FYJLQFrPNRwFns7jCXaqt6Y/s1QnajQccHCFnP8o= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH v3 1/2] show: don't use hex literals in JSON output Date: Fri, 20 Jan 2012 01:06:26 +0100 Message-Id: <1327017987-3361-2-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.8.4 In-Reply-To: <1327017987-3361-1-git-send-email-schnouki@schnouki.net> References: <87ty3r2rqt.fsf@schnouki.net> <1327017987-3361-1-git-send-email-schnouki@schnouki.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2012 00:06:38 -0000 JSON does not support hex literals (0x..) so numbers must be formatted as %d instead of %x. --- notmuch-show.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index d14dac9..91f566c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -641,7 +641,7 @@ format_part_sigstatus_json (const GMimeSignatureValidity* validity) printf (", \"keyid\": %s", json_quote_str (ctx_quote, signer->keyid)); } if (signer->errors != GMIME_SIGNER_ERROR_NONE) { - printf (", \"errors\": %x", signer->errors); + printf (", \"errors\": %d", signer->errors); } printf ("}"); -- 1.7.8.4