mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
pb_show: Don't show all unknown fields as boolean
Broken by 92b6d86c
.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -349,11 +349,12 @@ static pb_pr_show_t get_pb_show_function(int type)
|
||||
return show_nested_message;
|
||||
case PROTOBUF_C_TYPE_ENUM:
|
||||
return show_enum;
|
||||
case PROTOBUF_C_TYPE_BOOL:
|
||||
return show_bool;
|
||||
case PROTOBUF_C_TYPE_FLOAT:
|
||||
case PROTOBUF_C_TYPE_DOUBLE:
|
||||
case PROTOBUF_C_TYPE_BOOL:
|
||||
case PROTOBUF_C_TYPE_BYTES:
|
||||
return show_bool;
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
Reference in New Issue
Block a user