diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index df42d6ee..800e9938 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -99,8 +99,8 @@ static FARPROC sigar_GetProcAddress(sigar_t *sigar, if (!hModule) { sigar_log_printf(sigar, SIGAR_LOG_DEBUG, - "GetProcAddress(%s): %s\n", - lpProcName, "No module handle"); + "GetProcAddress(%s): No module handle", + lpProcName); return NULL; } diff --git a/src/sigar.c b/src/sigar.c index 0f811c08..57c0c0ce 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -1549,8 +1549,8 @@ SIGAR_DECLARE(int) sigar_fqdn_get(sigar_t *sigar, char *name, int namelen) } } - sigar_log_printf(sigar, SIGAR_LOG_DEBUG, - "[fqdn] unresolved using gethostbyname.h_addr_list"); + sigar_log(sigar, SIGAR_LOG_DEBUG, + "[fqdn] unresolved using gethostbyname.h_addr_list"); #if !defined(WIN32) && !defined(NETWARE) if (!IS_FQDN(name) && /* e.g. aix gethostname is already fqdn */