···171171 xrt_result_t (*unlock_list)(struct xrt_prober *xp, struct xrt_prober_device ***devices);
172172173173 /*!
174174- * Dump a listing of all devices found on the system to platform
175175- * dependent output (stdout).
174174+ * Dump a listing of all devices found on the system to logging system
175175+ * or platform dependent output (stdout).
176176+ *
177177+ * @param[in] xp Prober self parameter.
178178+ * @param[in] use_stdout If true uses stdout instead of logging code.
176179 *
177180 * @note Code consuming this interface should use xrt_prober_dump()
178181 */
179179- int (*dump)(struct xrt_prober *xp);
182182+ int (*dump)(struct xrt_prober *xp, bool use_stdout);
180183181184 /*!
182185 * Create system devices.
···362365 * @public @memberof xrt_prober
363366 */
364367static inline int
365365-xrt_prober_dump(struct xrt_prober *xp)
368368+xrt_prober_dump(struct xrt_prober *xp, bool use_stdout)
366369{
367367- return xp->dump(xp);
370370+ return xp->dump(xp, use_stdout);
368371}
369372370373/*!
···190190 * @public @memberof prober
191191 */
192192void
193193-p_dump_device(struct prober *p, struct prober_device *pdev, int id);
193193+p_dump_device(struct prober *p, struct prober_device *pdev, int id, bool use_stdout);
194194195195/*!
196196 * Get or create a @ref prober_device from the device.
+1-1
src/xrt/targets/cli/cli_cmd_test.c
···6565 // So the user can see what we found.
6666 printf(" :: Dumping!\n");
67676868- ret = xrt_prober_dump(xp);
6868+ ret = xrt_prober_dump(xp, true);
6969 if (ret != 0) {
7070 do_exit(&xi, ret);
7171 }