diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2012-06-10 21:50:57 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2012-06-10 21:50:57 -0700 |
commit | 099a421c7706ea5d7706890d7a3f12a4ccf7c126 (patch) | |
tree | f12191ef644d54211631507bfca65a2eedf92274 /sesman/sesman.c | |
parent | 3fad514c029a60c6d25286fe3b3a4ad20c80a856 (diff) | |
download | xrdp-proprietary-099a421c7706ea5d7706890d7a3f12a4ccf7c126.tar.gz xrdp-proprietary-099a421c7706ea5d7706890d7a3f12a4ccf7c126.zip |
log: added path for when --prefix is used
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r-- | sesman/sesman.c | 9 |
1 files changed, 4 insertions, 5 deletions
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; } - |