From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 82B664503A for ; Sun, 28 May 2023 23:17:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3C42868C200; Mon, 29 May 2023 02:17:12 +0300 (EEST) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9ADFC68A92B for ; Mon, 29 May 2023 02:17:05 +0300 (EEST) Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w4.tutanota.de (Postfix) with ESMTP id BCD5B10602C4 for ; Sun, 28 May 2023 23:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685315825; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=HGO3htlig61qfvXwbhD8TfiJTtXReU4+WvMyDunkWEk=; b=Ax0Ov6CpinY0XwGaHbsrkzfWcDucEEp7oPmcujQcyxRpfE917BgpW9RETg3awZ3P 8kAVmhdGSTRnaPa+o7ALInoLkXABNbZfbOU0peVHbjURQgqFl7fc/NLaEdEGjUyNds1 Vn17w2y05mSoHX8xBdKMGyBqsraxIBabkvbg8XGE4D49056p+lMJ+4KAeWGqThoOlMr FfcuwohmLTjdiefB2vJOa+D5yu5y4z9oNtFQNCn5vnl6ntnOdHQqKA/nP8A0OXFm44q zZGQPIJ20dW+tkzZLhHOw15XZ4jLtt3MRYxZvsgjnstdbmGlKk4swfMQSWbcb3DXkHa jr+e0+3Kqg== Date: Mon, 29 May 2023 01:17:05 +0200 (CEST) From: Lynne To: Ffmpeg Devel Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_103292_951306025.1685315825338" Subject: [FFmpeg-devel] [PATCH] vulkan: replace usage of %lu with %"SIZE_SPECIFIER" 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" Archived-At: List-Archive: List-Post: ------=_Part_103292_951306025.1685315825338 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This replaces all usage of %lu with the valid %"SIZE_SPECIFIER" Patch attached. ------=_Part_103292_951306025.1685315825338 Content-Type: text/x-diff; charset=us-ascii; name=0001-vulkan-replace-usage-of-lu-with-SIZE_SPECIFIER.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-vulkan-replace-usage-of-lu-with-SIZE_SPECIFIER.patch >From 71f6e3424992a0e53c69bfc8df2ec4266b593d89 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 29 May 2023 01:10:02 +0200 Subject: [PATCH] vulkan: replace usage of %lu with %"SIZE_SPECIFIER" --- libavcodec/vulkan_av1.c | 2 +- libavcodec/vulkan_h264.c | 2 +- libavcodec/vulkan_hevc.c | 2 +- libavcodec/vulkan_video.c | 2 +- libavutil/vulkan.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/vulkan_av1.c b/libavcodec/vulkan_av1.c index 5dc3e8919c..5447398612 100644 --- a/libavcodec/vulkan_av1.c +++ b/libavcodec/vulkan_av1.c @@ -542,7 +542,7 @@ static int vk_av1_end_frame(AVCodecContext *avctx) rav[i] = ap->ref_src[i]->f; } - av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %lu bytes, %i tiles\n", + av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %"SIZE_SPECIFIER" bytes, %i tiles\n", vp->slices_size, ap->tile_list.nb_tiles); return ff_vk_decode_frame(avctx, pic->f, vp, rav, rvp); diff --git a/libavcodec/vulkan_h264.c b/libavcodec/vulkan_h264.c index 7df2e99617..0548232971 100644 --- a/libavcodec/vulkan_h264.c +++ b/libavcodec/vulkan_h264.c @@ -524,7 +524,7 @@ static int vk_h264_end_frame(AVCodecContext *avctx) rav[i] = hp->ref_src[i]->f; } - av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %lu bytes, %i slices\n", + av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %"SIZE_SPECIFIER" bytes, %i slices\n", vp->slices_size, hp->h264_pic_info.sliceCount); return ff_vk_decode_frame(avctx, pic->f, vp, rav, rvp); diff --git a/libavcodec/vulkan_hevc.c b/libavcodec/vulkan_hevc.c index 592b2526e8..c242370f33 100644 --- a/libavcodec/vulkan_hevc.c +++ b/libavcodec/vulkan_hevc.c @@ -909,7 +909,7 @@ static int vk_hevc_end_frame(AVCodecContext *avctx) rvp[i] = &rfhp->vp; } - av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %lu bytes, %i slices\n", + av_log(avctx, AV_LOG_VERBOSE, "Decoding frame, %"SIZE_SPECIFIER" bytes, %i slices\n", vp->slices_size, hp->h265_pic_info.sliceSegmentCount); return ff_vk_decode_frame(avctx, pic->frame, vp, rav, rvp); diff --git a/libavcodec/vulkan_video.c b/libavcodec/vulkan_video.c index 24ef73ddf9..9a363aab02 100644 --- a/libavcodec/vulkan_video.c +++ b/libavcodec/vulkan_video.c @@ -339,7 +339,7 @@ av_cold int ff_vk_video_common_init(void *log, FFVulkanContext *s, .memorySize = mem[i].memoryRequirements.size, }; - av_log(log, AV_LOG_VERBOSE, "Allocating %lu bytes in bind index %i for video session\n", + av_log(log, AV_LOG_VERBOSE, "Allocating %"SIZE_SPECIFIER" bytes in bind index %i for video session\n", bind_mem[i].memorySize, bind_mem[i].memoryBindIndex); } diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 31e0df494b..bc4466e6c9 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1079,7 +1079,7 @@ int ff_vk_get_pooled_buffer(FFVulkanContext *ctx, AVBufferPool **buf_pool, ff_vk_free_buf(ctx, data); memset(data, 0, sizeof(*data)); - av_log(ctx, AV_LOG_DEBUG, "Allocating buffer of %lu bytes for pool %p\n", + av_log(ctx, AV_LOG_DEBUG, "Allocating buffer of %"SIZE_SPECIFIER" bytes for pool %p\n", size, *buf_pool); err = ff_vk_create_buf(ctx, data, size, -- 2.40.1 ------=_Part_103292_951306025.1685315825338 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ------=_Part_103292_951306025.1685315825338--