X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/8be98f12e9773c18651897ea7d518a2f5bf91b6a..de39bf505ab3a2f4166e858cc448e3ef45b7092f:/armsrc/util.c diff --git a/armsrc/util.c b/armsrc/util.c index 10c05655..cef64357 100644 --- a/armsrc/util.c +++ b/armsrc/util.c @@ -9,28 +9,6 @@ //----------------------------------------------------------------------------- #include "util.h" -void print_result(char *name, uint8_t *buf, size_t len) { - uint8_t *p = buf; - - if ( len % 16 == 0 ) { - for(; p-buf < len; p += 16) - Dbprintf("[%s:%d/%d] %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", - name, - p-buf, - len, - p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7],p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15] - ); - } - else { - for(; p-buf < len; p += 8) - Dbprintf("[%s:%d/%d] %02x %02x %02x %02x %02x %02x %02x %02x", - name, - p-buf, - len, - p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]); - } -} - size_t nbytes(size_t nbits) { return (nbits >> 3)+((nbits % 8) > 0); }