warn if written size is different to original one
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Jan 2012 11:43:21 +0000 (13:43 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 25 Jan 2012 14:47:41 +0000 (15:47 +0100)
commit42ad18e4d639f17f3e57ba4ed330cd555605b178
tree99a6bf6060542d84484eded1fae026912d805f27
parente6062dc3643b64cb009c12edef1395d2b5504f4a
warn if written size is different to original one

This patch also eliminates compiler warning:
 yavta.c: In function ‘video_save_image’:
 yavta.c:974:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Print different messages depending on whether the return value is
negative or positive]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
yavta.c