From: hno <> Date: Sat, 9 Aug 2003 18:31:41 +0000 (+0000) Subject: Bug #726: File src/fs/diskd/store_io_diskd.cc doesn't compile X-Git-Tag: SQUID_3_0_PRE3~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4f152d9fdbdf2299f92ec2cb52d459f3bfc84f3;p=thirdparty%2Fsquid.git Bug #726: File src/fs/diskd/store_io_diskd.cc doesn't compile use debugs() macro instead of debug() to take advantage of automatic typesafeness (no format strings which may mess things up) --- diff --git a/src/fs/diskd/store_io_diskd.cc b/src/fs/diskd/store_io_diskd.cc index 2ab018eaf7..61cce95425 100644 --- a/src/fs/diskd/store_io_diskd.cc +++ b/src/fs/diskd/store_io_diskd.cc @@ -1,6 +1,6 @@ /* - * $Id: store_io_diskd.cc,v 1.36 2003/08/04 22:14:53 robertc Exp $ + * $Id: store_io_diskd.cc,v 1.37 2003/08/09 12:31:41 hno Exp $ * * DEBUG: section 79 Squid-side DISKD I/O functions. * AUTHOR: Duane Wessels @@ -492,7 +492,7 @@ DiskdFile::createDone(diomsg *M) void DiskdFile::write(char const *buf, size_t size, off_t offset, FREE *free_func) { - debug(79, 3) ("DiskdFile::write: this %p , buf %p, off %ld, len %d\n", this, buf, offset, size); + debugs(79, 3, "DiskdFile::write: this " << (void *)this << ", buf " << (void *)buf << ", off " << offset << ", len " << size); off_t shm_offset; char *sbuf = (char *)IO->shm.get(&shm_offset); xmemcpy(sbuf, buf, size);