Skip to content

Commit c76227b

Browse files
committed
table lookup returns lookup result, not lookup key
1 parent 2b76ffe commit c76227b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

table_stdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ table_api_dispatch(void)
242242
r = handler_lookup(service_id(service), &params, key,
243243
buf, sizeof(buf));
244244
if (r == 1)
245-
printf("lookup-result|%s|found|%s\n", id, key);
245+
printf("lookup-result|%s|found|%s\n", id, buf);
246246
else if (r == 0)
247247
printf("lookup-result|%s|not-found\n", id);
248248
else

0 commit comments

Comments
 (0)