[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v3 1/4] arch/time: Add macros for printing nanoseconds types
Add macros for printing __nsec and __snsec types withing formatted string. Signed-off-by: Dafna Hirschfeld <dafna3@xxxxxxxxx> --- include/uk/arch/time.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uk/arch/time.h b/include/uk/arch/time.h index d436a3b..c66f380 100644 --- a/include/uk/arch/time.h +++ b/include/uk/arch/time.h @@ -50,6 +50,9 @@ typedef __u64 __nsec; typedef __s64 __snsec; +#define __PRInsec __PRIu64 +#define __PRIsnsec __PRIs64 + #define __NSEC_MAX (__U64_MAX) #define __SNSEC_MAX (__S64_MAX) #define __SNSEC_MIN (__S64_MIN) -- 2.7.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |