mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
xen: Fix coding style errors
Fixes the following errors: * ERROR: line over 90 characters * ERROR: code indent should never use tabs * ERROR: space prohibited after that open square bracket '[' * ERROR: do not initialise statics to 0 or NULL * ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Emil Condrea <emilcondrea@gmail.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Quan Xu <xuquan8@huawei.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
parent
5b2ecabaea
commit
c22e91b1d8
4 changed files with 76 additions and 64 deletions
|
@ -151,7 +151,8 @@ static void net_tx_packets(struct XenNetDev *netdev)
|
|||
continue;
|
||||
}
|
||||
|
||||
xen_be_printf(&netdev->xendev, 3, "tx packet ref %d, off %d, len %d, flags 0x%x%s%s%s%s\n",
|
||||
xen_be_printf(&netdev->xendev, 3,
|
||||
"tx packet ref %d, off %d, len %d, flags 0x%x%s%s%s%s\n",
|
||||
txreq.gref, txreq.offset, txreq.size, txreq.flags,
|
||||
(txreq.flags & NETTXF_csum_blank) ? " csum_blank" : "",
|
||||
(txreq.flags & NETTXF_data_validated) ? " data_validated" : "",
|
||||
|
@ -162,8 +163,9 @@ static void net_tx_packets(struct XenNetDev *netdev)
|
|||
netdev->xendev.dom,
|
||||
txreq.gref, PROT_READ);
|
||||
if (page == NULL) {
|
||||
xen_be_printf(&netdev->xendev, 0, "error: tx gref dereference failed (%d)\n",
|
||||
txreq.gref);
|
||||
xen_be_printf(&netdev->xendev, 0,
|
||||
"error: tx gref dereference failed (%d)\n",
|
||||
txreq.gref);
|
||||
net_tx_error(netdev, &txreq, rc);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue