Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: GPL-3.0-or-later

root = true

[*.{c,h}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 8
7 changes: 4 additions & 3 deletions hexagonrpcd/apps_std.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ static uint32_t apps_std_fopen_with_env(void *data,
}

#ifdef HEXAGONRPC_VERBOSE
printf("openat($%s, %s) -> %d\n", (const char *) inbufs[1].p,
(const char *) inbufs[3].p,
fd);
printf("openat($%s, %s, %c) -> %d\n", (const char *) inbufs[1].p,
(const char *) inbufs[3].p,
rw_mode,
fd);
#endif

*out = fd;
Expand Down
5 changes: 4 additions & 1 deletion hexagonrpcd/listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ static int invoke_requested_procedure(size_t n_ifaces,

if (REMOTE_SCALARS_INBUFS(sc) != in_count
|| REMOTE_SCALARS_OUTBUFS(sc) != out_count) {
fprintf(stderr, "Unexpected buffer count: %08x\n", sc);
fprintf(stderr, "Unexpected buffer count for method %u: %08x (in: %d vs %d, out: %d vs %d)\n",
method, sc,
REMOTE_SCALARS_INBUFS(sc), in_count,
REMOTE_SCALARS_OUTBUFS(sc), out_count);
*result = AEE_EBADPARM;
return 1;
}
Expand Down
Loading