aboutsummaryrefslogtreecommitdiff
path: root/tests/e1000e-test.c
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>2018-07-19 13:50:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-03-07 16:50:04 +0100
commit143e6db6fa4ecd2a85de740cc3754aeb86d1e802 (patch)
tree1c69142d63ac3924ea79347a586361c4cb95be53 /tests/e1000e-test.c
parent34c977489dd85e3528b0e5c3a02157c834560efa (diff)
tests/libqos: rename qpci_init_pc and qpci_init_spapr functions
Rename qpci_init_pc in qpci_pc_new and qpci_init_spapr in qpci_spapr_new, since these function actually allocate a new pci struct and initialize it (compare to object_new and object_initialize). Changed QOSOps field name from qpci_init to qpci_new. Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/e1000e-test.c')
-rw-r--r--tests/e1000e-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/e1000e-test.c b/tests/e1000e-test.c
index c9408a5d1f..5525589e5b 100644
--- a/tests/e1000e-test.c
+++ b/tests/e1000e-test.c
@@ -395,7 +395,7 @@ static void data_test_init(e1000e_device *d)
test_alloc = pc_alloc_init(global_qtest);
g_assert_nonnull(test_alloc);
- test_bus = qpci_init_pc(global_qtest, test_alloc);
+ test_bus = qpci_new_pc(global_qtest, test_alloc);
g_assert_nonnull(test_bus);
e1000e_device_init(test_bus, d);