diff --git a/obexd/src/log.c b/obexd/src/log.c
index ac8327c..02c06fb 100644
--- a/obexd/src/log.c
+++ b/obexd/src/log.c
{
const char *evtstr = NULL, *cmdstr = NULL, *rspstr = NULL;
int i;
+ static int lastevt, lastcmd;
+
+ if (evt < 0)
+ evt = lastevt;
+ else
+ lastevt = evt;
+
+ if (cmd < 0)
+ cmd = lastcmd;
+ else
+ lastcmd = cmd;
for (i = 0; obex_event[i].evt != 0xFF; i++) {
if (obex_event[i].evt != evt)
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index 82803ee..f250a5e 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
lastrsp = OBEX_RSP_INTERNAL_SERVER_ERROR;
}
+ obex_debug(-1, -1, rsp);
+
OBEX_ObjectSetRsp(obj, rsp, lastrsp);
}