From patchwork Fri Apr 10 11:04:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 18808 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 20BCB449251 for ; Fri, 10 Apr 2020 14:04:51 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EA48868B4E3; Fri, 10 Apr 2020 14:04:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 56DDA68B172 for ; Fri, 10 Apr 2020 14:04:44 +0300 (EEST) Received: by mail-pf1-f195.google.com with SMTP id c21so923217pfo.5 for ; Fri, 10 Apr 2020 04:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ul61flNKSSI7JjzIB8kZEQN+ALQF9J3QV1BDPS1M1zo=; b=k+clb8Gj7bSymDwpGQsHjGNG8A4fGHaAm8xrALXYNih4Nzb0WaPA37e8s/FmPaoBTQ f03YKxO584ZJycQdLN4ro1dVaqt3KTISTzfUFISNPZLjB77g+EFHI6CTFz7i/nOZePmh 3xe/qXgYAsnJSgNS/J8Ar+FdlvhF1tkGHMdMXgW1a/CriGu0nSLXwfqz/5ahD+7jT1CV 4PUluXcUJYJ6+xb8Ous5wjwXMKUbfUQtyoxFL47SsQ///k1S7jhJsyuDPhQ1vWc8T2pg RvhfwyExEA/+x9RFwrezmN/aun+afZDiI74gnyQ27tsp+hJPMadk6s1UAl9rCOqUbvDZ T+IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ul61flNKSSI7JjzIB8kZEQN+ALQF9J3QV1BDPS1M1zo=; b=L41fLtipEJhw8W0pg/C4rW6sCHnUHW05Wv991q44Vs5RnVeIOAnQ4/Otm5av1nbR0V DqJzKRzwpczDuoJVCoR9uhrOfuyVbkTK76YgNA7mMz7B1UQnTDHtI0w1kssBq4aR4ln6 g6rqbYXwyZKMqmtDD129ivlup9FYTalgLheyEjyCQGdRtus/C52rm2kJiyfY1Ok0oxT6 UMC6TV31DGf8Bd+ODnzib4vVwyAEJGxcd5o7wRmdgSRxASmxKaQO9xh3uHDt0/FI4TOT 5/4sfzISbguqB4+Z2BqkMWi84FzTQfbQInomV3L4dSrJ+3PJ5rtMPHI/ekxewYw2P0uF pVog== X-Gm-Message-State: AGi0PuYh2cZ+M48+Q4886Fc8Ln1o9QhJ1jTynEoPjDnzOh+PUMXufapF fgqJ45JucdMJtphij8cDlveXsLNT X-Google-Smtp-Source: APiQypIjKQWYx8QetvwhqTsAha+KiOvlAPsCvobR82/TqFXsZZ8E9mXrj+CQ8Sr0idy8CRAgpL+o3g== X-Received: by 2002:a63:9143:: with SMTP id l64mr3882994pge.75.1586516682243; Fri, 10 Apr 2020 04:04:42 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id w13sm1486217pfd.101.2020.04.10.04.04.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2020 04:04:41 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 10 Apr 2020 19:04:38 +0800 Message-Id: <20200410110438.20517-1-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [FFmpeg-devel] [PATCH v1] fftools/ffprobe: Use format specifier PRId64 instead of %lld X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index e3f221f560..a32bc529d9 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -408,7 +408,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv) if (show_float || (use_value_prefix && vald != (long long int)vald)) snprintf(buf, buf_size, "%f", vald); else - snprintf(buf, buf_size, "%lld", vali); + snprintf(buf, buf_size, "%"PRId64, vali); av_strlcatf(buf, buf_size, "%s%s%s", *prefix_string || show_value_unit ? " " : "", prefix_string, show_value_unit ? uv.unit : ""); } @@ -1002,7 +1002,7 @@ static void default_print_int(WriterContext *wctx, const char *key, long long in if (!def->nokey) printf("%s%s=", wctx->section_pbuf[wctx->level].str, key); - printf("%lld\n", value); + printf("%"PRId64"\n", value); } static const Writer default_writer = { @@ -1179,7 +1179,7 @@ static void compact_print_int(WriterContext *wctx, const char *key, long long in if (wctx->nb_item[wctx->level]) printf("%c", compact->item_sep); if (!compact->nokey) printf("%s%s=", wctx->section_pbuf[wctx->level].str, key); - printf("%lld", value); + printf("%"PRId64, value); } static const Writer compact_writer = { @@ -1322,7 +1322,7 @@ static void flat_print_section_header(WriterContext *wctx) static void flat_print_int(WriterContext *wctx, const char *key, long long int value) { - printf("%s%s=%lld\n", wctx->section_pbuf[wctx->level].str, key, value); + printf("%s%s=%"PRId64"\n", wctx->section_pbuf[wctx->level].str, key, value); } static void flat_print_str(WriterContext *wctx, const char *key, const char *value) @@ -1440,7 +1440,7 @@ static void ini_print_str(WriterContext *wctx, const char *key, const char *valu static void ini_print_int(WriterContext *wctx, const char *key, long long int value) { - printf("%s=%lld\n", key, value); + printf("%s=%"PRId64"\n", key, value); } static const Writer ini_writer = { @@ -1603,7 +1603,7 @@ static void json_print_int(WriterContext *wctx, const char *key, long long int v JSON_INDENT(); av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED); - printf("\"%s\": %lld", json_escape_str(&buf, key, wctx), value); + printf("\"%s\": %"PRId64, json_escape_str(&buf, key, wctx), value); av_bprint_finalize(&buf, NULL); } @@ -1776,7 +1776,7 @@ static void xml_print_int(WriterContext *wctx, const char *key, long long int va { if (wctx->nb_item[wctx->level]) printf(" "); - printf("%s=\"%lld\"", key, value); + printf("%s=\"%"PRId64"\"", key, value); } static Writer xml_writer = {