]>
git.ipfire.org Git - thirdparty/squid.git/blob - helpers/external_acl/kerberos_ldap_group/support_log.cc
2 * -----------------------------------------------------------------------------
4 * Author: Markus Moeller (markus_moeller at compuserve.com)
6 * Copyright (C) 2007 Markus Moeller. All rights reserved.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22 * -----------------------------------------------------------------------------
35 static time_t last_t
= 0;
39 gettimeofday(&now
, NULL
);
40 if (now
.tv_sec
!= last_t
) {
42 time_t tmp
= now
.tv_sec
;
44 strftime(buf
, 127, "%Y/%m/%d %H:%M:%S", tm
);
53 /* under gcc a macro define in compat/debug.h is used instead */
61 va_start(args
, format
);
62 vfprintf(stderr
, format
, args
);
67 error(char *format
,...)
70 va_start(args
, format
);
71 vfprintf(stderr
, format
, args
);
76 warn(char *format
,...)
79 va_start(args
, format
);
80 vfprintf(stderr
, format
, args
);