modetest: Print newline for empty blobs

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Ville Syrjälä 2012-06-08 13:28:16 +03:00 committed by Rob Clark
parent b958d76f77
commit c2c0346e1f
1 changed files with 3 additions and 1 deletions

View File

@ -264,8 +264,10 @@ static void dump_blob(struct device *dev, uint32_t blob_id)
drmModePropertyBlobPtr blob;
blob = drmModeGetPropertyBlob(dev->fd, blob_id);
if (!blob)
if (!blob) {
printf("\n");
return;
}
blob_data = blob->data;