summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_font.c
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2013-01-31 11:22:43 -0800
committerArvidNorr <norrarvid@gmail.com>2013-01-31 11:22:43 -0800
commit72c99794ee6d2811ba9c85d76e1f30f2309ac7d8 (patch)
treea76dc3599dea4ecc8d4a7a6369ab3b0873547dc1 /xrdp/xrdp_font.c
parent9aa0cb4e61eeb253a9a1177f1162eb5289130e96 (diff)
parentfb7294ed26d28b12d8da5cf5f41f5975f1999f04 (diff)
downloadxrdp-proprietary-72c99794ee6d2811ba9c85d76e1f30f2309ac7d8.tar.gz
xrdp-proprietary-72c99794ee6d2811ba9c85d76e1f30f2309ac7d8.zip
Merge pull request #59 from ArvidNorr/morelogging
More logging for debug and trace.
Diffstat (limited to 'xrdp/xrdp_font.c')
-rw-r--r--xrdp/xrdp_font.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c
index 91734807..18e6c21f 100644
--- a/xrdp/xrdp_font.c
+++ b/xrdp/xrdp_font.c
@@ -37,6 +37,7 @@
*/
#include "xrdp.h"
+#include "log.h"
#if 0 /* not used */
static char w_char[] =
@@ -80,8 +81,8 @@ xrdp_font_create(struct xrdp_wm *wm)
if (!g_file_exist(file_path))
{
- g_writeln("xrdp_font_create: error font file [%s] does not exist",
- file_path);
+ log_message(LOG_LEVEL_ERROR,"xrdp_font_create: error font file [%s] does not exist",
+ file_path);
return 0;
}
@@ -89,8 +90,8 @@ xrdp_font_create(struct xrdp_wm *wm)
if (file_size < 1)
{
- g_writeln("xrdp_font_create: error reading font from file [%s]",
- file_path);
+ log_message(LOG_LEVEL_ERROR,"xrdp_font_create: error reading font from file [%s]",
+ file_path);
return 0;
}
@@ -134,9 +135,9 @@ xrdp_font_create(struct xrdp_wm *wm)
if (datasize < 0 || datasize > 512)
{
/* shouldn't happen */
- g_writeln("error in xrdp_font_create, datasize wrong");
- g_writeln("width %d height %d datasize %d index %d",
- f->width, f->height, datasize, index);
+ log_message(LOG_LEVEL_ERROR,"error in xrdp_font_create, datasize wrong");
+ log_message(LOG_LEVEL_DEBUG,"width %d height %d datasize %d index %d",
+ f->width, f->height, datasize, index);
break;
}
@@ -147,7 +148,7 @@ xrdp_font_create(struct xrdp_wm *wm)
}
else
{
- g_writeln("error in xrdp_font_create");
+ log_message(LOG_LEVEL_ERROR,"error in xrdp_font_create");
}
index++;