Skip to content

Commit 282aed8

Browse files
committed
table lookup returns lookup result, not lookup key
1 parent 7ef0058 commit 282aed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)