Author: biurrun Date: Thu Apr 15 15:56:22 2010 New Revision: 2290 Log: Remove unused arguments of pisa_print_sockaddr(). Modified: trunk/libpisa/debug.c trunk/libpisa/debug.h Modified: trunk/libpisa/debug.c ============================================================================== --- trunk/libpisa/debug.c Thu Apr 15 15:54:48 2010 (r2289) +++ trunk/libpisa/debug.c Thu Apr 15 15:56:22 2010 (r2290) @@ -491,9 +491,6 @@ /** * pisa_print_sockaddr - print a socket address structure - * @param file the file from where the debug call was made - * @param line the line of the debug call in the source file - * @param function the name of function where the debug call is located * @param prefix the prefix string will printed before the sockaddr * @param sockaddr pointer to the sockaddr to be printed * @@ -501,9 +498,7 @@ * PISA_DEBUG_SOCKADDR macro instead. Currently this function supports * only INET and INET6 addresses. */ -void pisa_print_sockaddr(UNUSED const char *file, UNUSED int line, UNUSED const char *function, - const char *prefix, - const struct sockaddr *sockaddr) +void pisa_print_sockaddr(const char *prefix, const struct sockaddr *sockaddr) { char default_str[] = "<unknown>"; int maxlen; Modified: trunk/libpisa/debug.h ============================================================================== --- trunk/libpisa/debug.h Thu Apr 15 15:54:48 2010 (r2289) +++ trunk/libpisa/debug.h Thu Apr 15 15:56:22 2010 (r2290) @@ -77,7 +77,7 @@ #define PISA_DUMP_PACKET(prefix, str, len) \ pisa_hexdump_parsed(__FILE__, __LINE__, __FUNCTION__, prefix, str, len) #define PISA_DEBUG_SOCKADDR(prefix, sockaddr) \ - pisa_print_sockaddr(__FILE__, __LINE__, __FUNCTION__, prefix, sockaddr) + pisa_print_sockaddr(prefix, sockaddr) #define PISA_DUMP_MSG(type, msg) { pisa_print_str(type, PISA_DEBUG_LEVEL_DEBUG, __FILE__, __LINE__, __FUNCTION__, " dump: \n"); pisa_dump_msg(msg); } #else @@ -131,9 +131,7 @@ const char *prefix, const void *str, int len); void pisa_print_packet(const char *file, int line, const char *function, const char *prefix, const void *str, int len); -void pisa_print_sockaddr(const char *file, int line, const char *function, - const char *prefix, - const struct sockaddr *sockaddr); +void pisa_print_sockaddr(const char *prefix, const struct sockaddr *sockaddr); void pisa_print_str(int type, int debug_level, const char *file, int line, const char *function, const char *fmt, ...); #endif /* PISA_DEBUG_H */