mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-21 03:10:56 +08:00
fix debug output
This commit is contained in:
2
crypto.h
2
crypto.h
@@ -99,7 +99,7 @@ static int cmdpacket_encrypt(cmdpacket_t p, int index, const char pwd[64], const
|
|||||||
TEA tea;
|
TEA tea;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("encrypt len: %d, data: ", p->datalen);
|
printf("encrypt len: %d, data: ", p->datalen);
|
||||||
for(int i = 0; i < p->datalen; i++) printf("%02x", data[i]);
|
for(int i = 0; i < p->datalen; i++) printf("%02x", ((uint8_t*)data)[i]);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user