]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
show: don't use hex literals in JSON output
[notmuch] / notmuch-show.c
index 43ee2112d72c925f239bc3fcb7d6ce8c5036240c..7b40568e83240ba5cb48b368f1bf89fb703f34ec 100644 (file)
@@ -728,7 +728,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 (", \"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 ("}");
        }
 
        printf ("}");