summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-12-04 05:24:50 +0800
committerMatt Johnston <matt@ucc.asn.au>2011-12-04 05:24:50 +0800
commit8f150e2bf4b6e821e3c21f69b17ee1e7f16618a4 (patch)
treea9686b007742c3901d742ced120fec5a56900b87
parent87e405f6fd5b8036d7a5ff9caa7fd7240036b4c0 (diff)
downloaddropbear-8f150e2bf4b6e821e3c21f69b17ee1e7f16618a4.tar.gz
- Fix some format strings in TRACE()s
-rw-r--r--signkey.c4
-rw-r--r--svr-x11fwd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/signkey.c b/signkey.c
index c53805a..1d908f4 100644
--- a/signkey.c
+++ b/signkey.c
@@ -105,11 +105,11 @@ int buf_get_pub_key(buffer *buf, sign_key *key, int *type) {
m_free(ident);
if (*type != DROPBEAR_SIGNKEY_ANY && *type != keytype) {
- TRACE(("buf_get_pub_key bad type - got %d, expected %d", keytype, type))
+ TRACE(("buf_get_pub_key bad type - got %d, expected %d", keytype, *type))
return DROPBEAR_FAILURE;
}
- TRACE(("buf_get_pub_key keytype is %d"))
+ TRACE(("buf_get_pub_key keytype is %d", keytype))
*type = keytype;
diff --git a/svr-x11fwd.c b/svr-x11fwd.c
index 1af027b..92dadd5 100644
--- a/svr-x11fwd.c
+++ b/svr-x11fwd.c
@@ -175,7 +175,7 @@ void x11cleanup(struct ChanSess *chansess) {
m_free(chansess->x11authprot);
m_free(chansess->x11authcookie);
- TRACE(("chansess %s", chansess))
+ TRACE(("chansess %x", chansess))
if (chansess->x11listener != NULL) {
remove_listener(chansess->x11listener);
chansess->x11listener = NULL;