libmapi uses Samba debug.c for DEBUG statements. A few files have
printf statements for displaying errors. I picked debuglevel 3 at random
because I can't see the pattern to the levels used so far.
Attached.
--
Dan Shearer
[EMAIL PROTECTED]
Index: IMSProvider.c
===================================================================
--- IMSProvider.c (revision 231)
+++ IMSProvider.c (working copy)
@@ -37,7 +37,7 @@
NTSTATUS status;
if (!binding) {
- printf("You must specify a ncacn binding string\n");
+ DEBUG(3, ("You must specify a ncacn binding string\n"));
return NT_STATUS_INVALID_PARAMETER;
}
@@ -46,7 +46,7 @@
credentials, NULL);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to connect to remote server: %s %s\n", binding,
nt_errstr(status));
+ DEBUG(3, ("Failed to connect to remote server: %s %s\n",
binding, nt_errstr(status)));
}
/* dcerpc_pipe_connect set errno, we have to unset it */
Index: IProfAdmin.c
===================================================================
--- IProfAdmin.c (revision 231)
+++ IProfAdmin.c (working copy)
@@ -810,7 +810,7 @@
msg = res->msgs[0];
ldb_element = ldb_msg_find_element(msg, attribute);
if (!ldb_element) {
- printf("ldb_msg_find_element: NULL\n");
+ DEBUG(3,("ldb_msg_find_element: NULL\n"));
return MAPI_E_NOT_FOUND;
}
Index: cdo_mapi.c
===================================================================
--- cdo_mapi.c (revision 231)
+++ cdo_mapi.c (working copy)
@@ -165,7 +165,7 @@
session = global_mapi_ctx->session;
if (session && session->notify_ctx && session->notify_ctx->fd != -1) {
- printf("emsmdb_disconnect_dtor: unbind udp\n");
+ DEBUG(3, ("emsmdb_disconnect_dtor: unbind udp\n"));
shutdown(session->notify_ctx->fd, SHUT_RDWR);
close(session->notify_ctx->fd);
}
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel