Skip to content

Commit

Permalink
ta: os_test: remove deprecated macro related to libmpa
Browse files Browse the repository at this point in the history
Removes macros TB_PRINT_BIGINT() and TB_ASSERT_HEX_PRINT_VALUE() that
are never used. These macros depend in TEE_STRING_MODE_HEX_UC which
has been removed from optee_os. It was removed from OP-TEE because
it was related to libmpa removed from OP-TEE OS since release tag 3.9.0,
by commit 7fb525f ("Remove libmpa in favor of libmbedtls").

Link: OP-TEE/optee_os#6451
Acked-by: Jens Wiklander <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Nov 13, 2023
1 parent 1c3d6be commit a944815
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions ta/os_test/include/tb_asserts.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ do { \
}; \
} while (0)

/*
* TB_ASSERT_HEX_VALUE checks that a prints to the string v in hex.
*/
#define TB_ASSERT_HEX_PRINT_VALUE(a, v) \
do { \
char *_str_; \
_str_ = TEE_BigIntConvertToString(NULL, \
TEE_STRING_MODE_HEX_UC, (a)); \
TB_ASSERT_STR_EQ(_str_, (v)); \
TEE_Free(_str_); \
} while (0)

/*
* TB_ASSERT_POINTER_NULL(p) checks that p is null
*/
Expand Down
11 changes: 0 additions & 11 deletions ta/os_test/include/tb_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,4 @@
*/
#define DEL_BIGINT(name) TEE_Free(name)

/*
* TB_PRINT_BIGINT prints the mpanum in base 16.
*/
#define TB_PRINT_BIGINT(n) \
do { \
char *str; \
str = TEE_BigIntConvertToString(NULL, TEE_STRING_MODE_HEX_UC, 0, (n)); \
printf("%s\n", str); \
TEE_Free(str); \
} while (0)

#endif

0 comments on commit a944815

Please sign in to comment.