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>
1 file changed
tree: 99a6bf6060542d84484eded1fae026912d805f27
  1. COPYING.GPL
  2. Makefile
  3. yavta.c