- removed dprintf forn configure.in

- added "uname -a" string to startup/accept debug copnnection
This commit is contained in:
Thomas Ries 2005-01-02 11:43:38 +00:00
parent 26fe550029
commit 8edac3c2b7
6 changed files with 10 additions and 9 deletions

View File

@ -15,9 +15,6 @@
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
#undef HAVE_DOPRNT
/* Define to 1 if you have the `dprintf' function. */
#undef HAVE_DPRINTF
/* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
@ -180,9 +177,6 @@
/* Define to 1 if you have the <varargs.h> header file. */
#undef HAVE_VARARGS_H
/* Define to 1 if you have the `vdprintf' function. */
#undef HAVE_VDPRINTF
/* Define to 1 if you have the `vfprintf' function. */
#undef HAVE_VFPRINTF

View File

@ -366,7 +366,7 @@ AC_CHECK_FUNCS(getopt_long setsid syslog)
AC_CHECK_FUNCS(getuid setuid getgid setgid getpwnam chroot)
AC_CHECK_FUNCS(socket bind select read send sendto fcntl)
AC_CHECK_FUNCS(strncpy strchr strstr sprintf vfprintf vsnprintf)
AC_CHECK_FUNCS(dprintf vdprintf listen accept)
AC_CHECK_FUNCS(listen accept)
AC_CHECK_FUNCS(fgets sscanf)
AC_CHECK_FUNCS(hstrerror,,AC_CHECK_LIB(resolv,hstrerror,[
AC_DEFINE_UNQUOTED(HAVE_HSTRERROR)

View File

@ -19,7 +19,9 @@
#
AM_CFLAGS = -Wall -DBUILDSTR=\"`cat .buildno`\" -D_GNU_SOURCE
AM_CFLAGS = -Wall -D_GNU_SOURCE \
-DBUILDSTR="\"`cat .buildno`\"" \
-DUNAME="\"`uname -a`\""
#
# Siproxd itself

View File

@ -176,6 +176,7 @@ void log_tcp_connect(void) {
} else {
debug_fd=accept(debug_listen_fd, NULL, NULL);
INFO("Accepted DEBUG TCP connection [fd=%i]", debug_fd);
DEBUGC(DBCLASS_ALL,UNAME);
}
}

View File

@ -34,6 +34,7 @@
#define DBCLASS_RTP 0x00000200 /* RTP proxy */
#define DBCLASS_ACCESS 0x00000400 /* Access list evaluation */
#define DBCLASS_AUTH 0x00000800 /* Authentication */
#define DBCLASS_ALL 0xffffffff /* All classes */
void log_set_pattern(int pattern);

View File

@ -178,7 +178,8 @@ int main (int argc, char *argv[])
/*
* Init stuff
*/
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
INFO(PACKAGE"-"VERSION"-"BUILDSTR" starting up");
DEBUGC(DBCLASS_ALL,UNAME);
/* read the config file */
if (read_config(configfile, config_search) == STS_FAILURE) exit(1);
@ -251,6 +252,8 @@ int main (int argc, char *argv[])
*/
log_set_silence(configuration.silence_log);
INFO(PACKAGE"-"VERSION"-"BUILDSTR" started");
DEBUGC(DBCLASS_ALL,UNAME);
/*
* Main loop
*/