diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2015-02-04 11:19:01 +0100 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2015-02-26 07:31:47 +0100 |
commit | 5ee223c5cde6aee6a686d6a50a97adedbb03357e (patch) | |
tree | c1e45673bd1f803f79b7543e47cb88ef1aac837d | |
parent | 0eff3e9bf016399fce96b1f495b4e9605d6e5bdc (diff) |
types_ext.h: add PRI* macros
* Adds PRIxVA and PRIxPA macros to types.h.
* Includes inttypes.h instead of stdint.h to make all PRI* macros
available when including this file.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
-rw-r--r-- | lib/libutils/ext/include/types_ext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libutils/ext/include/types_ext.h b/lib/libutils/ext/include/types_ext.h index 448083a..78c26d4 100644 --- a/lib/libutils/ext/include/types_ext.h +++ b/lib/libutils/ext/include/types_ext.h @@ -29,11 +29,14 @@ #include <limits.h> #include <stddef.h> -#include <stdint.h> +#include <inttypes.h> #include <stdbool.h> typedef uintptr_t vaddr_t; +#define PRIxVA PRIxPTR + typedef uintptr_t paddr_t; +#define PRIxPA PRIxPTR typedef intptr_t ssize_t; |