Module Name: src
Committed By: hannken
Date: Tue Jan 6 11:03:09 UTC 2015
Modified Files:
src/sys/fs/ntfs: ntfs_vfsops.c
Log Message:
Adjust printf and add missing ntfs_ntput().
To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/fs/ntfs/ntfs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/fs/ntfs/ntfs_vfsops.c
diff -u src/sys/fs/ntfs/ntfs_vfsops.c:1.101 src/sys/fs/ntfs/ntfs_vfsops.c:1.102
--- src/sys/fs/ntfs/ntfs_vfsops.c:1.101 Sun Jan 4 16:19:12 2015
+++ src/sys/fs/ntfs/ntfs_vfsops.c Tue Jan 6 11:03:09 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfs_vfsops.c,v 1.101 2015/01/04 16:19:12 christos Exp $ */
+/* $NetBSD: ntfs_vfsops.c,v 1.102 2015/01/06 11:03:09 hannken Exp $ */
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.101 2015/01/04 16:19:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.102 2015/01/06 11:03:09 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -737,8 +737,8 @@ ntfs_loadvnode(struct mount *mp, struct
error = ntfs_ntvattrget(ntmp, ip, NTFS_A_NAME, NULL, 0, &vap);
if (error) {
- printf("%s: ino %jd (error %d)\n", __func__,
- (intmax_t)ip->i_number, error);
+ printf("%s: attr %x for ino %" PRId64 ": error %d\n",
+ __func__, NTFS_A_NAME, ip->i_number, error);
ntfs_ntput(ip);
goto out;
}
@@ -766,8 +766,9 @@ ntfs_loadvnode(struct mount *mp, struct
fp->f_allocated = 0;
error = 0;
} else {
- printf("%s: ino %jd attr %u (error %d)\n", __func__,
- (intmax_t)ip->i_number, ntkey->k_attrtype, error);
+ printf("%s: attr %x for ino %" PRId64 ": error %d\n",
+ __func__, ntkey->k_attrtype, ip->i_number, error);
+ ntfs_ntput(ip);
goto out;
}
}