Skip to content

Commit

Permalink
Update dump_buf API.
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanbulck committed Sep 7, 2017
1 parent 61377b2 commit dd0c8fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/sancus_support/sm_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SANCUS_SUPPORT_SM_IO_H_INC

#include <sancus/sm_support.h>
#include <stdint.h>

#define INFO_STR(str) "[" __FILE__ "] " str
#define pr_info(str) puts(INFO_STR(str))
Expand Down Expand Up @@ -39,7 +40,7 @@ int __attribute__((noinline)) putchar(int c);
void __attribute__((noinline)) printf2(const char* fmt, int arg1, int arg2);
void __attribute__((noinline)) printf3(const char* fmt, int arg1, int arg2, int arg3);

__always_inline void dump_buf(const char *buf, int size, char *name)
__always_inline void dump_buf(const uint8_t *buf, int size, char *name)
{
int i;
printf2("%s (%d bits) is: ", (int) name, size*8);
Expand Down

0 comments on commit dd0c8fe

Please sign in to comment.