Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/810053/?format=api
{ "id": 810053, "url": "http://patchwork.ozlabs.org/api/1.2/patches/810053/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170905092910.8946-2-berrange@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.2/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170905092910.8946-2-berrange@redhat.com>", "list_archive_url": null, "date": "2017-09-05T09:29:09", "name": "[PULL,v1,1/2] tests: fix incorrect size_t format in benchmark-crypto", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c09ec864f7d1248c529d5029d7102bc892bc6d19", "submitter": { "id": 2694, "url": "http://patchwork.ozlabs.org/api/1.2/people/2694/?format=api", "name": "Daniel P. Berrange", "email": "berrange@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170905092910.8946-2-berrange@redhat.com/mbox/", "series": [ { "id": 1534, "url": "http://patchwork.ozlabs.org/api/1.2/series/1534/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1534", "date": "2017-09-05T09:29:09", "name": "[PULL,v1,1/2] tests: fix incorrect size_t format in benchmark-crypto", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1534/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810053/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810053/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com", "ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=berrange@redhat.com" ], "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmhLH2kF6z9s0g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 5 Sep 2017 19:31:35 +1000 (AEST)", "from localhost ([::1]:57703 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dpACi-00009F-Vf\n\tfor incoming@patchwork.ozlabs.org; Tue, 05 Sep 2017 05:31:33 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:45649)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <berrange@redhat.com>) id 1dpAAc-00076i-9z\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 05:29:30 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <berrange@redhat.com>) id 1dpAAX-0007Bi-38\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 05:29:22 -0400", "from mx1.redhat.com ([209.132.183.28]:35912)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <berrange@redhat.com>) id 1dpAAW-0007At-QN\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 05:29:17 -0400", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id DDE595F795;\n\tTue, 5 Sep 2017 09:29:15 +0000 (UTC)", "from t460.redhat.com (unknown [10.33.36.63])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id E6712A64B6;\n\tTue, 5 Sep 2017 09:29:14 +0000 (UTC)" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com DDE595F795", "From": "\"Daniel P. Berrange\" <berrange@redhat.com>", "To": "qemu-devel@nongnu.org", "Date": "Tue, 5 Sep 2017 10:29:09 +0100", "Message-Id": "<20170905092910.8946-2-berrange@redhat.com>", "In-Reply-To": "<20170905092910.8946-1-berrange@redhat.com>", "References": "<20170905092910.8946-1-berrange@redhat.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.39]);\n\tTue, 05 Sep 2017 09:29:16 +0000 (UTC)", "Content-Transfer-Encoding": "quoted-printable", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "209.132.183.28", "Subject": "[Qemu-devel] [PULL v1 1/2] tests: fix incorrect size_t format in\n\tbenchmark-crypto", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "Peter Maydell <peter.maydell@linaro.org>, =?utf-8?q?Philippe_Mathieu-D?=\n\t=?utf-8?b?YXVkw6k=?= <f4bug@amsat.org>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "From: Philippe Mathieu-Daudé <f4bug@amsat.org>\n\n $ make check-speed\n tests/benchmark-crypto-hash.c: In function 'test_hash_speed':\n tests/benchmark-crypto-hash.c:44:5: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' [-Werror=format=]\n g_print(\"Testing chunk_size %ld bytes \", chunk_size);\n ^\n tests/benchmark-crypto-hash.c: In function 'main':\n tests/benchmark-crypto-hash.c:62:9: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' [-Werror=format=]\n snprintf(name, sizeof(name), \"/crypto/hash/speed-%lu\", i);\n ^\n cc1: all warnings being treated as errors\n rules.mak:66: recipe for target 'tests/benchmark-crypto-hash.o' failed\n make: *** [tests/benchmark-crypto-hash.o] Error 1\n\nReviewed-by: Longpeng(Mike) <longpeng@huawei.com>\nReviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>\nSigned-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\nSigned-off-by: Daniel P. Berrange <berrange@redhat.com>\n---\n tests/benchmark-crypto-cipher.c | 4 ++--\n tests/benchmark-crypto-hash.c | 4 ++--\n tests/benchmark-crypto-hmac.c | 4 ++--\n 3 files changed, 6 insertions(+), 6 deletions(-)", "diff": "diff --git a/tests/benchmark-crypto-cipher.c b/tests/benchmark-crypto-cipher.c\nindex c6a40929e4..cf98443468 100644\n--- a/tests/benchmark-crypto-cipher.c\n+++ b/tests/benchmark-crypto-cipher.c\n@@ -59,7 +59,7 @@ static void test_cipher_speed(const void *opaque)\n total /= 1024 * 1024; /* to MB */\n \n g_print(\"cbc(aes128): \");\n- g_print(\"Testing chunk_size %ld bytes \", chunk_size);\n+ g_print(\"Testing chunk_size %zu bytes \", chunk_size);\n g_print(\"done: %.2f MB in %.2f secs: \", total, g_test_timer_last());\n g_print(\"%.2f MB/sec\\n\", total / g_test_timer_last());\n \n@@ -80,7 +80,7 @@ int main(int argc, char **argv)\n \n for (i = 512; i <= (64 * 1204); i *= 2) {\n memset(name, 0 , sizeof(name));\n- snprintf(name, sizeof(name), \"/crypto/cipher/speed-%lu\", i);\n+ snprintf(name, sizeof(name), \"/crypto/cipher/speed-%zu\", i);\n g_test_add_data_func(name, (void *)i, test_cipher_speed);\n }\n \ndiff --git a/tests/benchmark-crypto-hash.c b/tests/benchmark-crypto-hash.c\nindex 6769d2a11b..122bfb6b85 100644\n--- a/tests/benchmark-crypto-hash.c\n+++ b/tests/benchmark-crypto-hash.c\n@@ -41,7 +41,7 @@ static void test_hash_speed(const void *opaque)\n \n total /= 1024 * 1024; /* to MB */\n g_print(\"sha256: \");\n- g_print(\"Testing chunk_size %ld bytes \", chunk_size);\n+ g_print(\"Testing chunk_size %zu bytes \", chunk_size);\n g_print(\"done: %.2f MB in %.2f secs: \", total, g_test_timer_last());\n g_print(\"%.2f MB/sec\\n\", total / g_test_timer_last());\n \n@@ -59,7 +59,7 @@ int main(int argc, char **argv)\n \n for (i = 512; i <= (64 * 1204); i *= 2) {\n memset(name, 0 , sizeof(name));\n- snprintf(name, sizeof(name), \"/crypto/hash/speed-%lu\", i);\n+ snprintf(name, sizeof(name), \"/crypto/hash/speed-%zu\", i);\n g_test_add_data_func(name, (void *)i, test_hash_speed);\n }\n \ndiff --git a/tests/benchmark-crypto-hmac.c b/tests/benchmark-crypto-hmac.c\nindex 72408be987..c30250df3e 100644\n--- a/tests/benchmark-crypto-hmac.c\n+++ b/tests/benchmark-crypto-hmac.c\n@@ -56,7 +56,7 @@ static void test_hmac_speed(const void *opaque)\n total /= 1024 * 1024; /* to MB */\n \n g_print(\"hmac(sha256): \");\n- g_print(\"Testing chunk_size %ld bytes \", chunk_size);\n+ g_print(\"Testing chunk_size %zu bytes \", chunk_size);\n g_print(\"done: %.2f MB in %.2f secs: \", total, g_test_timer_last());\n g_print(\"%.2f MB/sec\\n\", total / g_test_timer_last());\n \n@@ -74,7 +74,7 @@ int main(int argc, char **argv)\n \n for (i = 512; i <= (64 * 1204); i *= 2) {\n memset(name, 0 , sizeof(name));\n- snprintf(name, sizeof(name), \"/crypto/hmac/speed-%lu\", i);\n+ snprintf(name, sizeof(name), \"/crypto/hmac/speed-%zu\", i);\n g_test_add_data_func(name, (void *)i, test_hmac_speed);\n }\n \n", "prefixes": [ "PULL", "v1", "1/2" ] }