summaryrefslogtreecommitdiff
path: root/apps/iap/iap-core.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2014-01-16 08:12:29 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2014-01-16 08:19:27 +0100
commit7f5dce4116bf4e62e0cd3ef16730157e17625e1c (patch)
treebc3afba4cc4d9759f58d8947a67f0f93be63c715 /apps/iap/iap-core.c
parent47f648fd927388c99e9b0ee971ecdfe78bae9a59 (diff)
downloadrockbox-7f5dce4116bf4e62e0cd3ef16730157e17625e1c.tar.gz
rockbox-7f5dce4116bf4e62e0cd3ef16730157e17625e1c.zip
ipods: fix DEBUG builds
iap-core.h defines LOGF_ENABLE unconditionally but hexstring() helper function was not compiled if logf support was not selected in configure. The regular builds worked by accident because logf() lines where discarded by preprocessor. Change-Id: Id76af478e7c760d81168ebf9bf3eb973a679987c
Diffstat (limited to 'apps/iap/iap-core.c')
-rw-r--r--apps/iap/iap-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/iap/iap-core.c b/apps/iap/iap-core.c
index ddcb22853a..7226a908c5 100644
--- a/apps/iap/iap-core.c
+++ b/apps/iap/iap-core.c
@@ -511,7 +511,7 @@ void iap_send_tx(void)
511 } 511 }
512 *(iap_txnext) = 0x100 - (chksum & 0xFF); 512 *(iap_txnext) = 0x100 - (chksum & 0xFF);
513 513
514#ifdef LOGF_ENABLE 514#if defined(LOGF_ENABLE) && defined(ROCKBOX_HAS_LOGF)
515 logf("T: %s", hexstring(txstart+3, (iap_txnext - txstart)-3)); 515 logf("T: %s", hexstring(txstart+3, (iap_txnext - txstart)-3));
516#endif 516#endif
517 for (i=0; i <= (iap_txnext - txstart); i++) 517 for (i=0; i <= (iap_txnext - txstart); i++)
@@ -1253,7 +1253,7 @@ void iap_handlepkt(void)
1253 1253
1254 /* handle command by mode */ 1254 /* handle command by mode */
1255 length = get_u16(iap_rxstart); 1255 length = get_u16(iap_rxstart);
1256#ifdef LOGF_ENABLE 1256#if defined(LOGF_ENABLE) && defined(ROCKBOX_HAS_LOGF)
1257 logf("R: %s", hexstring(iap_rxstart+2, (length))); 1257 logf("R: %s", hexstring(iap_rxstart+2, (length)));
1258#endif 1258#endif
1259 1259