Skip to content

Commit

Permalink
Update lowrisc_ip to lowRISC/opentitan@16bc8ecfae
Browse files Browse the repository at this point in the history
Update code from upstream repository
https://github.com/lowRISC/opentitan to revision
16bc8ecfaeca634081044eb43ea8975fd2901768

Signed-off-by: Hugo McNally <[email protected]>
  • Loading branch information
HU90m committed May 3, 2024
1 parent 7a59bee commit 10e0158
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vendor/lowrisc_ip/dv/dpi/uartdpi/uartdpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,16 @@ void uartdpi_write(void *ctx_void, char c) {
}

rv = write(ctx->host, &c, 1);
assert(rv == 1 && "Write to pseudo-terminal failed.");

if (rv != 1) {
fprintf(stderr, "UART: Write to pseudo-terminal failed: %s\n", strerror(errno));
}

if (ctx->log_file) {
rv = fwrite(&c, sizeof(char), 1, ctx->log_file);
assert(rv == 1 && "Write to log file failed.");

if (rv != 1) {
fprintf(stderr, "UART: Write to log file failed: %s\n", strerror(errno));
}
}
}

0 comments on commit 10e0158

Please sign in to comment.