From 6879e9df771aedcbb13b61e542076777fe1edc3f Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Tue, 28 Oct 2014 08:49:05 +0100 Subject: [PATCH] Tarfs: fix traces --- src/system/boot/loader/file_systems/tarfs/tarfs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/system/boot/loader/file_systems/tarfs/tarfs.cpp b/src/system/boot/loader/file_systems/tarfs/tarfs.cpp index 26af67aaaa..f5c19f7080 100644 --- a/src/system/boot/loader/file_systems/tarfs/tarfs.cpp +++ b/src/system/boot/loader/file_systems/tarfs/tarfs.cpp @@ -16,6 +16,7 @@ #include #include +#include #include @@ -272,8 +273,8 @@ TarFS::File::~File() ssize_t TarFS::File::ReadAt(void* cookie, off_t pos, void* buffer, size_t bufferSize) { - TRACE(("tarfs: read at %Ld, %lu bytes, fSize = %Ld\n", pos, bufferSize, - fSize)); + TRACE(("tarfs: read at %" B_PRIdOFF ", %" B_PRIuSIZE " bytes, fSize = %" + B_PRIdOFF "\n", pos, bufferSize, fSize)); if (pos < 0 || !buffer) return B_BAD_VALUE; @@ -703,7 +704,7 @@ TarFS::Volume::Init(boot::Partition* partition) off_t size = strtol(header->size, NULL, 8); - TRACE(("tarfs: \"%s\", %Ld bytes\n", header->name, size)); + TRACE(("tarfs: \"%s\", %" B_PRIdOFF " bytes\n", header->name, size)); // TODO: this is old-style GNU tar which probably won't work with newer // ones...