From 39ec2a83477222d88c9bd83f0c9cd40428cefc92 Mon Sep 17 00:00:00 2001 From: cha0smaster Date: Wed, 3 Aug 2005 14:06:04 +0000 Subject: [PATCH] ntfsmount: perror => Eprintf on partial {read,write}. --- ntfsprogs/ntfsmount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index fe49ecd5..02ef4b21 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -402,8 +402,8 @@ static int ntfs_fuse_read(const char *org_path, char *buf, size_t size, while (size) { res = ntfs_attr_pread(na, offset, size, buf); if (res < size) - perror("ntfs_attr_pread returned less bytes than " - "requested."); + Eprintf("ntfs_attr_pread returned less bytes than " + "requested.\n"); if (res <= 0) { res = -errno; goto exit; @@ -451,8 +451,8 @@ static int ntfs_fuse_write(const char *org_path, const char *buf, size_t size, while (size) { res = ntfs_attr_pwrite(na, offset, size, buf); if (res < size) - perror("ntfs_attr_pwrite returned less bytes than " - "requested."); + Eprintf("ntfs_attr_pwrite returned less bytes than " + "requested.\n"); if (res <= 0) { res = -errno; goto exit;