diff options
author | Kevin Koch <kpkoch@mit.edu> | 2008-01-22 16:34:31 +0000 |
---|---|---|
committer | Kevin Koch <kpkoch@mit.edu> | 2008-01-22 16:34:31 +0000 |
commit | 71bc89ed452de3b5aa6356087280554e58ae4456 (patch) | |
tree | ba6b451184014bffd741037c0b80a27e9517e115 /src/ccapi/common/cci_debugging.c | |
parent | 3bbddf92797339694a9881d6f08b5bb0aea5adbe (diff) | |
download | krb5-71bc89ed452de3b5aa6356087280554e58ae4456.tar.gz krb5-71bc89ed452de3b5aa6356087280554e58ae4456.tar.xz krb5-71bc89ed452de3b5aa6356087280554e58ae4456.zip |
Make windows debug message line endings match the Mac endings.
Windows needs k5-platform helper function declared explicitly.
Change definition of ccs_pipe_t for windows.
#define strdup -- it's now deprecated on windows.
TargetVersion: 1.7
Component: krb5-libs
Ticket: 5594
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20201 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/common/cci_debugging.c')
-rw-r--r-- | src/ccapi/common/cci_debugging.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ccapi/common/cci_debugging.c b/src/ccapi/common/cci_debugging.c index 4545b402e..e35926117 100644 --- a/src/ccapi/common/cci_debugging.c +++ b/src/ccapi/common/cci_debugging.c @@ -1,7 +1,7 @@ /* * $Header$ * - * Copyright 2006 Massachusetts Institute of Technology. + * Copyright 2007, 2008 Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -27,6 +27,12 @@ #include "cci_common.h" #include "cci_os_debugging.h" +#ifdef WIN32 +char* eol = "\n"; +#else +char* eol = ""; +#endif + /* ------------------------------------------------------------------------ */ cc_int32 _cci_check_error (cc_int32 in_error, @@ -36,8 +42,8 @@ cc_int32 _cci_check_error (cc_int32 in_error, { /* Do not log for flow control errors or when there is no error at all */ if (in_error != ccNoError && in_error != ccIteratorEnd) { - cci_debug_printf ("%s() got %d at %s: %d", in_function, - in_error, in_file, in_line); + cci_debug_printf ("%s() got %d at %s: %d%s", in_function, + in_error, in_file, in_line, eol); } return in_error; |