From patchwork Thu Apr 29 16:33:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 27485 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a11:4023:0:0:0:0 with SMTP id ky35csp1659422pxb; Thu, 29 Apr 2021 09:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhNzsMWT30Izq90cvZKzVuD2bpO9+Ir8bmrotVXi+/HDTfNTarpvv5t8TbQjddG+vIwJf8 X-Received: by 2002:a7b:c0cb:: with SMTP id s11mr1024018wmh.146.1619714013555; Thu, 29 Apr 2021 09:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619714013; cv=none; d=google.com; s=arc-20160816; b=xv7C6NSyq2IlJdyoFrzXxVFoAzIb3fLQV6NtkQONmmHz232sGgpmZkj/dfaxYKzfOH fFDMA8k58hVAUY/m9RHaYV5HEty2YgO6X2d7tDSw8nlveTWDo+yoe3j1Cd6EdKlnGUh/ irOel5Pk269OyzQG+K2rJWpwuGIsALhN1eF6RXefSTRXul5UImJp1vq4OogUuM0qYC0u zH1e5f/9bPxR3Skn2dQJhtjiNfRdTNz47clWSzb7tp4hiQl2r01/3jEjHEVTwXthb177 fjmForGxYS/Eky4sQuNvADMudhCCPklEq1oR/r1i+e+iH3s8ea99JHQ6xw2qwG7fN5DY D0kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=8D1EqkJ98wqNr+REkyBJCpMoLq0cRIFrbJRHImsxft8=; b=D+0Lynnn1RcgX703v9qRuV6lDDUiKu3FXN2iYIOl8dNjcz82t5AFVQtUm9rZkLIu4u XrP9BckR1xVfyUW/JPkxlSCt3kPPG2hvk1T6kmL2eO25VVuLzIeLibzDSHvBLFpeyGby h8xNEqBQ7VOTSU0e0iVtU8QbgpbycJ02NzYdwpe2ZaJdEhDJH+LSOyfSeoVUV1NgU/TS Cx0qhFqKqdWOBARJ3NfuEK6o03uV4UcKsi21yBt3Q/7JrXjvfIKVlAW2Os8ddcJOxjgT SvTmMZxvOrNMQBMqo+obVQLwROJK1mevkcWsZw/jpCRIUMN24+2AgJZBz1V4ht7YNLuC G6YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QbZuFAvz; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id se25si486459ejb.310.2021.04.29.09.33.32; Thu, 29 Apr 2021 09:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QbZuFAvz; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AB06368A0B7; Thu, 29 Apr 2021 19:33:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C4DAD689D92 for ; Thu, 29 Apr 2021 19:33:23 +0300 (EEST) Received: by mail-qv1-f53.google.com with SMTP id u1so1255794qvg.11 for ; Thu, 29 Apr 2021 09:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkrCtRZIjPUP6CSXI54AJVKx26qhFmHxcNw4y+Wb2H8=; b=QbZuFAvz3Qe3lny3sJ+BbPT/ruNYtcSWul+dL3q64e2kBfzFa8ks62Ry+41fI0/j+T YqfzVMM2SdwiGkf6O37PNQCzTUUTUzp0FShn3FNbpB13NkBSRS+hU3vFADMz4p4t92Vp OOxDi51DQQorgkwoF04PCJEtjHuUj1DAqZ1zkzTLAW8r4J80f+JrHPTOtnD6q3yIXW0q 6OSLzvOaqDL9d9lcchpJ9uqrf5mlxbq0qypFnNdsBjzdEC5Ozg/ZqqK4vTfSBOwUgO/0 tNQesMsEJ5aGwKh6jXs+bjaOg/7ZbvwUFA67vbeOURFIxFzZUNyYU5Xj2r/IzbwCdB4q PN8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PkrCtRZIjPUP6CSXI54AJVKx26qhFmHxcNw4y+Wb2H8=; b=TPGPUg3xgxLXtiS/wNk7KK5owsDfy0vzRoR2BTbhTHrJoJgeAX9o81ZiS/r1h/I9Oz rqnl5IGtcY/GTV6hPnrI/bcBSKqzxtOrCnKWAGkzuBeUjpBWFFwbbOmGsHW+hLTnIvGV fVI4fhvR0Vdvrga0cRFWqE/B5Wqqx2wloBUdFVnl1/5KpHc6ale3MEXQ7u1KFFtaG7S4 mZFnZQrGe0tGasDPnXrBpkzpWNu43OGszckvRcRiLNy4TU2rgkjzDgpYrgtF3y3OiRNW i2g5ltWWKWQ0AwGcXYxcyN9ZHKIfhIg19XS7TUk6LqoUZeUe/wdssrAzV76F+yho/6sJ RaTA== X-Gm-Message-State: AOAM532B+EkHl/lAtUHhFSnGVtmLUq83Pv8TYn6rWVmXLZf5/FIYJfgs TOHXSBZoUS+7XGFO2i3nZKOEBOsbQXQ= X-Received: by 2002:a0c:b218:: with SMTP id x24mr727157qvd.55.1619714002281; Thu, 29 Apr 2021 09:33:22 -0700 (PDT) Received: from localhost.localdomain ([191.83.208.172]) by smtp.gmail.com with ESMTPSA id g23sm277355qtu.41.2021.04.29.09.33.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 09:33:21 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Apr 2021 13:33:02 -0300 Message-Id: <20210429163302.58691-1-jamrial@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avutil/hwcontext_vulkan: fix format specifiers for some printed variables X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: KtcL6h1NR2oV VkPhysicalDeviceLimits.optimalBufferCopyRowPitchAlignment and VkPhysicalDeviceExternalMemoryHostPropertiesEXT.minImportedHostPointerAlignment are of type VkDeviceSize (a typedef uint64_t). VkPhysicalDeviceLimits.minMemoryMapAlignment is of type size_t. Signed-off-by: James Almer --- libavutil/hwcontext_vulkan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 48327ad98f..444dbb5a58 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -1123,12 +1123,12 @@ static int vulkan_device_init(AVHWDeviceContext *ctx) av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n", p->props.properties.deviceName); av_log(ctx, AV_LOG_VERBOSE, "Alignments:\n"); - av_log(ctx, AV_LOG_VERBOSE, " optimalBufferCopyRowPitchAlignment: %li\n", + av_log(ctx, AV_LOG_VERBOSE, " optimalBufferCopyRowPitchAlignment: %"PRIu64"\n", p->props.properties.limits.optimalBufferCopyRowPitchAlignment); - av_log(ctx, AV_LOG_VERBOSE, " minMemoryMapAlignment: %li\n", + av_log(ctx, AV_LOG_VERBOSE, " minMemoryMapAlignment: %"SIZE_SPECIFIER"\n", p->props.properties.limits.minMemoryMapAlignment); if (p->extensions & EXT_EXTERNAL_HOST_MEMORY) - av_log(ctx, AV_LOG_VERBOSE, " minImportedHostPointerAlignment: %li\n", + av_log(ctx, AV_LOG_VERBOSE, " minImportedHostPointerAlignment: %"PRIu64"\n", p->hprops.minImportedHostPointerAlignment); p->dev_is_nvidia = (p->props.properties.vendorID == 0x10de);