From 3b67904dbc176ac78f8f3cd2a3e87ababed5da6d Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Wed, 15 Apr 2026 10:21:51 +0100 Subject: [PATCH] plugins/amdgpu: Clarify open_img_file docstring Docstring refers to size_t as 8-byte value while in reality this is architecture dependent. Clarify it. Signed-off-by: Tvrtko Ursulin --- plugins/amdgpu/amdgpu_plugin_util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/amdgpu/amdgpu_plugin_util.c b/plugins/amdgpu/amdgpu_plugin_util.c index 0514288cb..cd272923c 100644 --- a/plugins/amdgpu/amdgpu_plugin_util.c +++ b/plugins/amdgpu/amdgpu_plugin_util.c @@ -223,11 +223,11 @@ int write_fp(FILE *fp, const void *buf, const size_t buf_len) /** * @brief Open an image file * - * We store the size of the actual contents in the first 8-bytes of - * the file. This allows us to determine the file size when using - * criu_image_streamer when fseek and fstat are not available. The - * FILE * returned is already at the location of the first actual - * contents. + * We store the size of the actual contents at the start of the file. (Note that + * the size of this field is architecture dependent!). This allows us to + * determine the file size when using criu_image_streamer when fseek and fstat + * are not available. The FILE * returned is already at the location of the + * first actual contents. * * @param path The file path * @param write False for read, true for write