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 65CD5429E3B for ; Tue, 17 Jan 2012 02:51:12 -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 bHqzcNgLEP1L for ; Tue, 17 Jan 2012 02:51:08 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id AEF74429E2F for ; Tue, 17 Jan 2012 02:51:08 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id E51D66A002A; Tue, 17 Jan 2012 11:51:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1326797468; bh=eEEwb9ekZaZhwqnf7kfbYYoRAJ5IvE6X8h+LQMvEPiU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=Uu9cONIyk4jH29MhIa6BQ4Sk7nApRDtnSyhYIryaPOg6auq+enTXKQ+a+JCgKLZ9r udGnlK2IdazDsK5c28jPnI0K7wP9PXDIAobuwPKTqmZQQOpUVyeoL4jHrIas7Ocw2a gPBgFGqZhmr73hrpfLrmLf4VKZkgmIquZT23oFzc= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH v2 1/2] show: don't use hex literals in JSON output Date: Tue, 17 Jan 2012 11:50:52 +0100 Message-Id: <1326797453-9405-1-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <8739bea9lc.fsf@thor.loria.fr> References: <8739bea9lc.fsf@thor.loria.fr> 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: Tue, 17 Jan 2012 10:51:12 -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.3