mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpdk: fix compiler warnings on 32bit build
Those changes fix compiler warnings. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014 Nicira, Inc.
|
* Copyright (c) 2014, 2015 Nicira, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -1785,14 +1785,14 @@ new_device(struct virtio_net *dev)
|
|||||||
ovs_mutex_unlock(&dpdk_mutex);
|
ovs_mutex_unlock(&dpdk_mutex);
|
||||||
|
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
VLOG_INFO("vHost Device '%s' (%ld) can't be added - name not found",
|
VLOG_INFO("vHost Device '%s' %"PRIu64" can't be added - name not "
|
||||||
dev->ifname, dev->device_fh);
|
"found", dev->ifname, dev->device_fh);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
VLOG_INFO("vHost Device '%s' (%ld) has been added",
|
VLOG_INFO("vHost Device '%s' %"PRIu64" has been added", dev->ifname,
|
||||||
dev->ifname, dev->device_fh);
|
dev->device_fh);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1830,8 +1830,8 @@ destroy_device(volatile struct virtio_net *dev)
|
|||||||
}
|
}
|
||||||
ovs_mutex_unlock(&dpdk_mutex);
|
ovs_mutex_unlock(&dpdk_mutex);
|
||||||
|
|
||||||
VLOG_INFO("vHost Device '%s' (%ld) has been removed",
|
VLOG_INFO("vHost Device '%s' %"PRIu64" has been removed", dev->ifname,
|
||||||
dev->ifname, dev->device_fh);
|
dev->device_fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct virtio_net *
|
struct virtio_net *
|
||||||
|
Reference in New Issue
Block a user