[spice-common v3 4/6] test-region: Remove unneeded printf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



__FUNCTION__ will always be rect_is_valid, and there is a g_assert to
check the region is valid, so we will get notified anyway if the
validity check fails.

Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
---
 tests/test-region.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/test-region.c b/tests/test-region.c
index a5a5351..12fdfce 100644
--- a/tests/test-region.c
+++ b/tests/test-region.c
@@ -62,7 +62,6 @@ static int slow_region_test(const QRegion *rgn, const QRegion *other_rgn, int qu
 static int rect_is_valid(const SpiceRect *r)
 {
     if (r->top > r->bottom || r->left > r->right) {
-        printf("%s: invalid rect\n", __FUNCTION__);
         return FALSE;
     }
     return TRUE;
-- 
2.17.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]