Skip to content

Commit

Permalink
apps: remote: Change output to use metal_* routines
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Levinsky <[email protected]>
  • Loading branch information
bentheredonethat committed Jan 15, 2025
1 parent cc489a2 commit 8cab9c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/legacy_apps/examples/echo/rpmsg-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#define SHUTDOWN_MSG 0xEF56A55A

#define LPRINTF(format, ...) printf(format, ##__VA_ARGS__)
#define LPERROR(format, ...) LPRINTF("ERROR: " format, ##__VA_ARGS__)
#define LPRINTF(format, ...) metal_info("INFO: " format, ##__VA_ARGS__)
#define LPERROR(format, ...) metal_err("ERROR: " format, ##__VA_ARGS__)

static struct rpmsg_endpoint lept;
static int shutdown_req = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@

#define SHUTDOWN_MSG 0xEF56A55A

#define LPRINTF(format, ...) printf(format, ##__VA_ARGS__)
//#define LPRINTF(format, ...)
#define LPERROR(format, ...) LPRINTF("ERROR: " format, ##__VA_ARGS__)
#define LPRINTF(format, ...) metal_info("INFO: " format, ##__VA_ARGS__)
#define LPERROR(format, ...) metal_err("ERROR: " format, ##__VA_ARGS__)

typedef struct _matrix {
unsigned int size;
Expand Down
5 changes: 2 additions & 3 deletions examples/legacy_apps/examples/rpc_demo/rpc_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
#define REDEF_O_APPEND 0002000
#define REDEF_O_ACCMODE 0000003

#define LPRINTF(format, ...) xil_printf(format, ##__VA_ARGS__)
//#define LPRINTF(format, ...)
#define LPERROR(format, ...) LPRINTF("ERROR: " format, ##__VA_ARGS__)
#define LPRINTF(format, ...) metal_info("INFO: " format, ##__VA_ARGS__)
#define LPERROR(format, ...) metal_err("ERROR: " format, ##__VA_ARGS__)

static void rpmsg_rpc_shutdown(struct rpmsg_rpc_data *rpc)
{
Expand Down

0 comments on commit 8cab9c3

Please sign in to comment.