Prints a list of found devices and tests opening some of them.
More...
#include "xrt/xrt_space.h"
#include "xrt/xrt_system.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_instance.h"
#include "cli_common.h"
#include <string.h>
#include <stdio.h>
|
static int | do_exit (struct xrt_instance **xi_ptr, int ret) |
|
int | cli_cmd_test (int argc, const char **argv) |
|
◆ PRINT_DYNR
#define PRINT_DYNR |
( |
|
ROLE, |
|
|
|
PAD |
|
) |
| |
Value: do { \
if (roles.ROLE < 0) { \
printf("\t" #ROLE ": " PAD "<none>\n"); \
} else { \
printf("\t" #ROLE ": " PAD "%s\n", xsysd->xdevs[roles.ROLE]->str); \
} \
} while (false)
◆ PRINT_ROLE
#define PRINT_ROLE |
( |
|
ROLE, |
|
|
|
PAD |
|
) |
| |
Value: do { \
if (xsysd->static_roles.ROLE == NULL) { \
printf("\t" #ROLE ": " PAD "<none>\n"); \
} else { \
printf("\t" #ROLE ": " PAD "%s\n", xsysd->static_roles.ROLE->str); \
} \
} while (false)