summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_mm.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-08-05 06:16:05 +0000
committerjsorg71 <jsorg71>2009-08-05 06:16:05 +0000
commiteeac7c938a7602f4e471181aa62b18c206105de8 (patch)
tree8aefb09f38b9215394baf9806841c07203994177 /xrdp/xrdp_mm.c
parent3cfea6a9596269cf1a0e308ea6653905fa3702bb (diff)
downloadxrdp-proprietary-eeac7c938a7602f4e471181aa62b18c206105de8.tar.gz
xrdp-proprietary-eeac7c938a7602f4e471181aa62b18c206105de8.zip
add extended log output
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r--xrdp/xrdp_mm.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index 7d41a2aa..901b49af 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -309,13 +309,15 @@ xrdp_mm_setup_mod1(struct xrdp_mm* self)
lib[0] = 0;
if (xrdp_mm_get_lib(self, lib, 255) != 0)
{
- g_snprintf(text, 255, "error finding lib");
+ g_snprintf(text, 255, "no library name specified in xrdp.ini, please add "
+ "lib=libxrdp-vnc.so or similar");
xrdp_wm_log_msg(self->wm, text);
return 1;
}
if (lib[0] == 0)
{
- g_snprintf(text, 255, "error finding lib");
+ g_snprintf(text, 255, "empty library name specified in xrdp.ini, please "
+ "add lib=libxrdp-vnc.so or similar");
xrdp_wm_log_msg(self->wm, text);
return 1;
}
@@ -331,7 +333,8 @@ xrdp_mm_setup_mod1(struct xrdp_mm* self)
}
if (func == 0)
{
- g_snprintf(text, 255, "error finding proc mod_init in %s", lib);
+ g_snprintf(text, 255, "error finding proc mod_init in %s, not a valid "
+ "xrdp backend", lib);
xrdp_wm_log_msg(self->wm, text);
}
self->mod_init = (struct xrdp_mod* (*)(void))func;
@@ -342,7 +345,8 @@ xrdp_mm_setup_mod1(struct xrdp_mm* self)
}
if (func == 0)
{
- g_snprintf(text, 255, "error finding proc mod_exit in %s", lib);
+ g_snprintf(text, 255, "error finding proc mod_exit in %s, not a valid "
+ "xrdp backend", lib);
xrdp_wm_log_msg(self->wm, text);
}
self->mod_exit = (int (*)(struct xrdp_mod*))func;
@@ -353,7 +357,8 @@ xrdp_mm_setup_mod1(struct xrdp_mm* self)
}
else
{
- g_snprintf(text, 255, "error loading %s", lib);
+ g_snprintf(text, 255, "error loading %s specified in xrdp.ini, please "
+ "add a valid entry like lib=libxrdp-vnc.so or similar", lib);
xrdp_wm_log_msg(self->wm, text);
}
if (self->mod != 0)