X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrvutil.c;h=12f21cd98dd815b008c31b01876417498b303ab9;hb=ca05044548d5c1de87c030d625a305731a6cc665;hp=281ee382d2c0f86add90eab561144952a8079886;hpb=579ca009fa70ee40c1f3b52f4c4ddf51387f7b11;p=tpg%2Facess2.git diff --git a/Kernel/drvutil.c b/Kernel/drvutil.c index 281ee382..12f21cd9 100644 --- a/Kernel/drvutil.c +++ b/Kernel/drvutil.c @@ -3,8 +3,8 @@ * Common Driver/Filesystem Helper Functions */ #define DEBUG 0 -#include -#include +#include +#include // === CODE === Uint64 DrvUtil_ReadBlock(Uint64 Start, Uint64 Length, void *Buffer, @@ -130,7 +130,7 @@ Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, void *Buffer, // Read central blocks if(num) { - LOG("Reading %i blocks", num); + LOG("Writing %i blocks", num); ret = WriteBlocks(block, num, Buffer, Argument); if(ret != num ) { LEAVE('X', leading + ret * BlockSize); @@ -141,7 +141,7 @@ Uint64 DrvUtil_WriteBlock(Uint64 Start, Uint64 Length, void *Buffer, // Read last tailing block if(tailings != 0) { - LOG("Reading %i bytes from last block", tailings); + LOG("Writing %i bytes to last block", tailings); block += num; Buffer += num * BlockSize; // Read