ia64/xen-unstable

changeset 8619:ca795f19b613

replace ASSERT by BUG_ON.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Mon Jan 16 22:04:42 2006 +0000 (2006-01-16)
parents 49c3b00484ff
children 927cd2e4f150
files linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c linux-2.6-xen-sparse/drivers/xen/netback/netback.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Mon Jan 16 21:58:44 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Mon Jan 16 22:04:42 2006 +0000
     1.3 @@ -551,7 +551,7 @@ static int blkif_queue_request(struct re
     1.4  			lsect = fsect + (bvec->bv_len >> 9) - 1;
     1.5  			/* install a grant reference. */
     1.6  			ref = gnttab_claim_grant_reference(&gref_head);
     1.7 -			ASSERT(ref != -ENOSPC);
     1.8 +			BUG_ON(ref == -ENOSPC);
     1.9  
    1.10  			gnttab_grant_foreign_access_ref(
    1.11  				ref,
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Mon Jan 16 21:58:44 2006 +0000
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c	Mon Jan 16 22:04:42 2006 +0000
     2.3 @@ -120,7 +120,7 @@ int netif_be_start_xmit(struct sk_buff *
     2.4  {
     2.5  	netif_t *netif = netdev_priv(dev);
     2.6  
     2.7 -	ASSERT(skb->dev == dev);
     2.8 +	BUG_ON(skb->dev != dev);
     2.9  
    2.10  	/* Drop the packet if the target domain has no receive buffers. */
    2.11  	if (!netif->active ||