block: always compile-check debug prints
commited79f37d9b6f1d3543afe5103bbe9dab43484b66
authorZhou Jie <zhoujie2011@cn.fujitsu.com>
Fri, 29 Apr 2016 05:12:01 +0000 (29 13:12 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:08 +0000 (12 15:22 +0200)
tree4b60625a8d6e408996b8f75325807723ac1b3ef8
parent547cb1574e29082aa194ec65c43c8e08ac1f9aa8
block: always compile-check debug prints

Files with conditional debug statements should ensure that the printf is
always compiled. This prevents bitrot of the format string of the debug
statement. And switch debug output to stderr.

Signed-off-by: Zhou Jie <zhoujie2011@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/curl.c
block/sheepdog.c