[PATCH] copyhandler: Fix format string compiler warning

9 views
Skip to first unread message

Christian Storm

unread,
Aug 3, 2026, 4:53:53 PM (2 days ago) Aug 3
to swup...@googlegroups.com
Fix the compiler warning
format specifies type 'unsigned long' but the argument has type 'off_t' (aka 'long long')

Signed-off-by: Christian Storm <christi...@siemens.com>
---
handlers/copy_handler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c
index f5826ad6..d428bd54 100644
--- a/handlers/copy_handler.c
+++ b/handlers/copy_handler.c
@@ -133,7 +133,7 @@ static int copy_single_file(const char *path, off_t skipbytes, ssize_t size, str
}

if (size < 0) {
- ERROR("Size cannot be detected for %s or it is before offset 0x%lx", path, skipbytes);
+ ERROR("Size cannot be detected for %s or it is before offset 0x%llx", path, skipbytes);
close(fdin);
return -ENODEV;
}
--
2.55.0

Stefano Babic

unread,
3:45 AM (4 hours ago) 3:45 AM
to Christian Storm, swup...@googlegroups.com
Applied to -master, thanks !

Best regards,
Stefano Babic

--
_______________________________________________________________________
Nabla Software Engineering GmbH
Hirschstr. 111A | 86156 Augsburg | Tel: +49 821 45592596
Geschäftsführer : Stefano Babic | HRB 40522 Augsburg
E-Mail: sba...@nabladev.com

Reply all
Reply to author
Forward
0 new messages