From: amosjeffries <> Date: Sun, 2 Dec 2007 14:19:58 +0000 (+0000) Subject: Wrap equation argument to debugs() properly. X-Git-Tag: SQUID_3_0_STABLE1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2544f13fab0c9a9df5cf8d393878bb3dde74c0f;p=thirdparty%2Fsquid.git Wrap equation argument to debugs() properly. Safe code does not rely on internals protecting themelves. Even if they do. --- diff --git a/src/fs/ufs/store_dir_ufs.cc b/src/fs/ufs/store_dir_ufs.cc index f6cc16af32..ed2c4389e3 100644 --- a/src/fs/ufs/store_dir_ufs.cc +++ b/src/fs/ufs/store_dir_ufs.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir_ufs.cc,v 1.86 2007/11/15 16:47:38 wessels Exp $ + * $Id: store_dir_ufs.cc,v 1.87 2007/12/02 07:19:58 amosjeffries Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -498,7 +498,7 @@ UFSSwapDir::createDirectory(const char *path, int should_exist) if (0 == ::stat(path, &st)) { if (S_ISDIR(st.st_mode)) { - debugs(47, should_exist ? 3 : 1, path << " exists"); + debugs(47, (should_exist ? 3 : 1), path << " exists"); } else { fatalf("Swap directory %s is not a directory.", path); } @@ -510,7 +510,7 @@ UFSSwapDir::createDirectory(const char *path, int should_exist) } else if (0 == mkdir(path, 0755)) { #endif - debugs(47, should_exist ? 1 : 3, path << " created"); + debugs(47, (should_exist ? 1 : 3), path << " created"); created = 1; } else { fatalf("Failed to make swap directory %s: %s",