diff options
author | David Barksdale <amatus@amatus.name> | 2014-08-13 18:04:11 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-08-13 18:04:11 -0500 |
commit | f05c100b6a7051106229cda5a845e94e36e71b17 (patch) | |
tree | c69ec39e1fc49491a3f74587eb97da5419ca2708 /fs/splice.c | |
parent | 76eb481bf48dceae202d928d9a9d1b7c7bbcda79 (diff) |
gpl-source-mybooklive-020035.zipgpl-source-mybooklive-020106.zipgpl-source-mybooklive-020035.zip
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/splice.c b/fs/splice.c index 0d810e86f6c..5a21493e9e8 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -2599,20 +2599,22 @@ static long do_splice_2(int fd_in, struct file *in, loff_t __user *off_in, /** handle error status */ if( ret <= 0 ) { +#ifdef DEBUG_SPLICE printk( KERN_ERR "%s:%s:%d\n" "sock_splice_read read error %ld.\n", __FILE__, __FUNCTION__, __LINE__, ret ); - +#endif /** fail on specific errors */ if ( ret == 0 || ! ignore_splice_error ( ret ) ) { +#ifdef DEBUG_SPLICE printk( KERN_ERR "%s:%s:%d\n" "returning read error %ld " "after reading %d out of %d bytes.\n", __FILE__, __FUNCTION__, __LINE__, ret, spliced_len, len ); - +#endif release_splice_pipebufs_special(pipe); goto out; } |