Skip to content

Commit 95dc9e4

Browse files
Update codelet to provide more information
1 parent c16363b commit 95dc9e4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jbpf_tests/test_files/codelets/simple_input_output/simple_input_output.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ jbpf_main(void* state)
2020
custom_api api = {0};
2121
int* output;
2222

23+
jbpf_printf_debug("jbpf_main called with state %p\n", state);
2324
if (jbpf_control_input_receive(&input_map, &api, sizeof(custom_api)) > 0) {
25+
jbpf_printf_debug("Received command: %u\n", api.command);
2426
output = jbpf_get_output_buf(&output_map);
2527

2628
if (!output) {
2729
return 1;
2830
}
2931
*output = api.command;
3032

33+
jbpf_printf_debug("Sending output: %d\n", *output);
3134
if (jbpf_send_output(&output_map) < 0) {
3235
return 1;
3336
}
Binary file not shown.

0 commit comments

Comments
 (0)