Skip to content

Commit

Permalink
comments + minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anuraag <[email protected]>
  • Loading branch information
Anuraag-Ganesh authored and boinkaput committed Sep 23, 2024
1 parent ef1afd1 commit 5dff2fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/linux/blk/blk_driver_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ void init_main(void)
{
LOG_UIO_INIT("Starting UIO block driver...\n");
execv(UIO_BLK_DRIVER_PROGRAM_PATH, uio_blk_driver_args);
LOG_UIO_INIT("UIO block driver exited\n");
LOG_UIO_INIT_ERR("UIO block driver exited\n");
}
3 changes: 3 additions & 0 deletions tools/linux/include/uio/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

#define LOG_UIO_INIT_ERR(...) do{ printf("UIO_DRIVER_INIT"); printf("|ERROR: "); printf(__VA_ARGS__); }while(0)

/* Load all kernel modules required by the driver */
bool load_modules(void);

/* Executes the uio driver program. Does not return (unless there is an error). */
void init_main(void);

/* Helper for loading a kernel module */
bool insmod(const char *module_path);
2 changes: 1 addition & 1 deletion tools/linux/snd/snd_driver_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ void init_main(void)
}

execv(UIO_SND_DRIVER_PROGRAM_PATH, uio_snd_driver_args);
LOG_UIO_INIT("UIO sound driver exited\n");
LOG_UIO_INIT_ERR("UIO sound driver exited\n");
}

0 comments on commit 5dff2fe

Please sign in to comment.