buf = dupprintf("Remote debug message: %.*s", msglen, msg); logevent(buf); sfree(buf);
logeventf(ssh, "Remote debug message: %.*s", msglen, msg);
static void ssh2_msg_debug(Ssh ssh, struct Packet *pktin){    /* log the debug message */    char *buf, *msg;    int msglen;    int always_display;    /* XXX maybe we should actually take notice of this */    always_display = ssh2_pkt_getbool(pktin);    ssh_pkt_getstring(pktin, &msg, &msglen);    buf = dupprintf("Remote debug message: %.*s", msglen, msg);    logevent(buf);    sfree(buf);}