-----Original Message----- > Date: Fri, 15 Dec 2017 11:26:25 +0000 > From: Liang Ma <[email protected]> > To: [email protected] > CC: [email protected], [email protected], [email protected], > [email protected], [email protected], [email protected], > [email protected] > Subject: [PATCH v2 4/8] eventdev/opdl: opdl eventdev pmd unit test function > X-Mailer: git-send-email 2.7.5 > > This commit adds unit test inside the OPDL PMD. There is a PMd parameter > "self_test" can be used to triger the test when vdev bus probe opdl device > > e.g. > > sudo ./app/test --vdev="event_opdl0,self_test=1" > > Signed-off-by: Liang Ma <[email protected]> > Signed-off-by: Peter, Mccarthy <[email protected]> > --- > drivers/event/opdl/opdl_test.c | 1079 > ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 1079 insertions(+) > create mode 100644 drivers/event/opdl/opdl_test.c > > + > + > +/* destruction */ > +static inline int > +cleanup(struct test *t __rte_unused) > +{ > + rte_event_dev_stop(evdev); > + rte_event_dev_close(evdev); > + printf("cleanup for test done\n\n");
Replace printf with driver specific logging function across the files in the driver.

