[Spice-devel] [PATCH] server: bitmap_consistent: replace spice_error with spice_warning
Christophe Fergeau
cfergeau at redhat.com
Mon Sep 2 01:11:31 PDT 2013
On Sun, Sep 01, 2013 at 09:43:17PM +0300, Uri Lublin wrote:
> bitmap_consistent should return true or false.
> Currently it aborts instead of returning false, due to spice_error.
> Replacing spice_error with spice_warning, provides information and returns
> false, as expected.
Looking for spice_error through that file, it looks like all spice_error
occurrences should be spice_warning:
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c
index 6c0b065..cc19795 100644
--- a/server/red_parse_qxl.c
+++ b/server/red_parse_qxl.c
@@ -486,7 +486,8 @@ static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id,
red_put_data_chunks(&chunks);
break;
default:
- spice_error("unknown type %d", red->descriptor.type);
+ spice_warning("unknown type %d", red->descriptor.type);
+ goto error;
}
return red;
error:
@@ -1001,7 +1002,7 @@ static int red_get_native_drawable(RedMemSlotInfo *slots, int group_id,
&red->u.whiteness, &qxl->u.whiteness, flags);
break;
default:
- spice_error("unknown type %d", red->type);
+ spice_warning("unknown type %d", red->type);
error = 1;
break;
};
@@ -1087,7 +1088,7 @@ static int red_get_compat_drawable(RedMemSlotInfo *slots, int group_id,
&red->u.whiteness, &qxl->u.whiteness, flags);
break;
default:
- spice_error("unknown type %d", red->type);
+ spice_warning("unknown type %d", red->type);
error = 1;
break;
};
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130902/91a32ddb/attachment.pgp>
More information about the Spice-devel
mailing list