From 099a421c7706ea5d7706890d7a3f12a4ccf7c126 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 10 Jun 2012 21:50:57 -0700 Subject: log: added path for when --prefix is used --- sesman/sesman.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sesman/sesman.c') diff --git a/sesman/sesman.c b/sesman/sesman.c index 1d60626c..b882c49d 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -252,20 +252,20 @@ main(int argc, char** argv) } g_snprintf(cfg_file,255,"%s/sesman.ini",XRDP_CFG_PATH); - + /* starting logging subsystem */ error = log_start(cfg_file,"XRDP-sesman"); if (error != LOG_STARTUP_OK) { - char buf[256] ; switch (error) { case LOG_ERROR_MALLOC: - g_printf("error on malloc. cannot start logging. quitting.\n"); + g_writeln("error on malloc. cannot start logging. quitting."); break; case LOG_ERROR_FILE_OPEN: - g_printf("error opening log file [%s]. quitting.\n", getLogFile(buf,255)); + g_writeln("error opening log file [%s]. quitting.", + getLogFile(text, 255)); break; } g_deinit(); @@ -368,4 +368,3 @@ main(int argc, char** argv) g_deinit(); return 0; } - -- cgit v1.2.1