mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
Remove unused functions print_hex, print_hex_break
This commit is contained in:
parent
69a74eb0b3
commit
d174ff06de
2 changed files with 0 additions and 28 deletions
|
@ -138,33 +138,6 @@ void hex_to_buffer(const uint8_t *buf, const uint8_t *hex_data, const size_t hex
|
||||||
|
|
||||||
// printing and converting functions
|
// printing and converting functions
|
||||||
|
|
||||||
void print_hex(const uint8_t * data, const size_t len)
|
|
||||||
{
|
|
||||||
size_t i;
|
|
||||||
|
|
||||||
for (i=0; i < len; i++)
|
|
||||||
printf("%02x ", data[i]);
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_hex_break(const uint8_t *data, const size_t len, uint8_t breaks) {
|
|
||||||
|
|
||||||
int rownum = 0;
|
|
||||||
printf("[%02d] | ", rownum);
|
|
||||||
for (int i = 0; i < len; ++i) {
|
|
||||||
|
|
||||||
printf("%02X ", data[i]);
|
|
||||||
|
|
||||||
// check if a line break is needed
|
|
||||||
if ( breaks > 0 && !((i+1) % breaks) && (i+1 < len) ) {
|
|
||||||
++rownum;
|
|
||||||
printf("\n[%02d] | ", rownum);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
char *sprint_hex(const uint8_t *data, const size_t len) {
|
char *sprint_hex(const uint8_t *data, const size_t len) {
|
||||||
static char buf[1025] = {0};
|
static char buf[1025] = {0};
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ extern void FillFileNameByUID(char *fileName, uint8_t * uid, char *ext, int byte
|
||||||
extern void hex_to_buffer(const uint8_t *buf, const uint8_t *hex_data, const size_t hex_len,
|
extern void hex_to_buffer(const uint8_t *buf, const uint8_t *hex_data, const size_t hex_len,
|
||||||
const size_t hex_max_len, const size_t min_str_len, const size_t spaces_between, bool uppercase);
|
const size_t hex_max_len, const size_t min_str_len, const size_t spaces_between, bool uppercase);
|
||||||
|
|
||||||
extern void print_hex(const uint8_t * data, const size_t len);
|
|
||||||
extern char *sprint_hex(const uint8_t * data, const size_t len);
|
extern char *sprint_hex(const uint8_t * data, const size_t len);
|
||||||
extern char *sprint_hex_inrow(const uint8_t *data, const size_t len);
|
extern char *sprint_hex_inrow(const uint8_t *data, const size_t len);
|
||||||
extern char *sprint_hex_inrow_ex(const uint8_t *data, const size_t len, const size_t min_str_len);
|
extern char *sprint_hex_inrow_ex(const uint8_t *data, const size_t len, const size_t min_str_len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue