ports/sysutils/xfsprogs/files/patch-libxfs_rdwr.c
Alexey Dokuchaev f9c458ae7c - Update to version 3.2.4, the latest in 3.x branch. Versions 4.x are
available, but they do not configure (this might be a red herring,
  pending further investigation):
    ...
    checking for blkid_probe_get_topology... no

    FATAL ERROR: could not find a valid BLKID header.
    Install the Block device ID development package.

- Because DISTNAME is sane now, setting of EXTRACT_SUFX and WRKSRC are
  no longer needed and were dropped
- DESTDIR is now respected by `install-sh' script, which allows to drop
  patching of individual makefiles and `include/buildmacros' file
- All programs are installed under ${LOCALBASE}/sbin now
- This version requires a number of patches to build on FreeBSD, most
  importantly:

    * Use getmntinfo() and extattr_set_fd() APIs instead of Linuxish
      getmntent() and fsetxattr()
    * Rename LIST_HEAD -> XFS_LIST_HEAD macro to avoid clash with our
      own one provided by queue(3)
    * Disable missing mremap(2) system call support in `io/mmap.c'
    * Replace `dirent->d_off' with more portable call to telldir()
    * Add missing `#include <inttypes.h>' in several files, etc.

TIMESTAMP (xfsprogs-3.2.4.tar.gz) = 1438219249
2017-05-12 19:08:17 +00:00

19 lines
621 B
C

--- libxfs/rdwr.c.orig 2015-07-24 04:28:04 UTC
+++ libxfs/rdwr.c
@@ -16,6 +16,7 @@
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <inttypes.h>
#include <xfs/libxfs.h>
#include "init.h"
@@ -371,7 +372,7 @@ libxfs_bcompare(struct cache_node *node,
#ifdef IO_BCOMPARE_CHECK
if (!(libxfs_bcache->c_flags & CACHE_MISCOMPARE_PURGE)) {
fprintf(stderr,
- "%lx: Badness in key lookup (length)\n"
+ "%p: Badness in key lookup (length)\n"
"bp=(bno 0x%llx, len %u bytes) key=(bno 0x%llx, len %u bytes)\n",
pthread_self(),
(unsigned long long)bp->b_bn, (int)bp->b_bcount,