You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
658 B

  1. From 4f4d854b7758da89ced4dc800fcbec11667d61c8 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Mon, 22 Feb 2021 16:05:54 -0800
  4. Subject: [PATCH] fix wrong printf off_t format
  5. It's long vs. long long. There's a macro for this.
  6. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  7. ---
  8. port.h | 5 ++---
  9. 1 file changed, 2 insertions(+), 3 deletions(-)
  10. --- a/port.h
  11. +++ b/port.h
  12. @@ -3,14 +3,13 @@
  13. #include "conf.h"
  14. -
  15. -
  16. +#include <inttypes.h>
  17. #ifndef _LARGEFILE64_SOURCE
  18. #define _LARGEFILE64_SOURCE
  19. #endif
  20. #ifdef _LARGEFILE64_SOURCE
  21. -#define OFF_T_PRINTF "%lld"
  22. +#define OFF_T_PRINTF "%" PRId64
  23. #else
  24. #define OFF_T_PRINTF "%d"
  25. #endif