start updating 'hf mfu' commands (#818)

* use PrintAndLogEx()
* fix some printouts
* some #include refactoring
* whitespace
This commit is contained in:
pwpiwi 2019-05-28 07:48:55 +02:00 committed by GitHub
parent 5f18b0c45d
commit 4be9f36ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 464 additions and 481 deletions

View file

@ -268,6 +268,10 @@ char *sprint_ascii_ex(const uint8_t *data, const size_t len, const size_t min_st
return buf;
}
char *sprint_ascii(const uint8_t *data, const size_t len) {
return sprint_ascii_ex(data, len, 0);
}
void num_to_bytes(uint64_t n, size_t len, uint8_t* dest)
{
while (len--) {
@ -329,7 +333,7 @@ uint8_t *SwapEndian64(const uint8_t *src, const size_t len, const uint8_t blockS
}
//assumes little endian
char * printBits(size_t const size, void const * const ptr)
char *printBits(size_t const size, void const * const ptr)
{
unsigned char *b = (unsigned char*) ptr;
unsigned char byte;