Revert "Printing values using new function from eolian debug"
This reverts commit 398d9facb6
.
This commit is contained in:
parent
398d9facb6
commit
9f43b8c2d2
|
@ -247,23 +247,25 @@ void _eolian_type_to_string (const Eolian_Type *param_eolian_type, char *c_type)
|
|||
}
|
||||
}
|
||||
|
||||
#define _MAX_LABEL 100
|
||||
#define _MAX_LABEL 50
|
||||
static char *_obj_info_eo_param_str_get(_Obj_info_node *node)
|
||||
{
|
||||
char name[_MAX_LABEL]; name[0] = '\0';
|
||||
char c_type[_MAX_LABEL];
|
||||
char val[_MAX_LABEL];
|
||||
Eolian_Debug_Parameter *param = node->data;
|
||||
const Eolian_Function_Parameter *type = param->etype;
|
||||
const Eolian_Type *eo_type = eolian_parameter_type_get(type);
|
||||
param = node->data;
|
||||
|
||||
char *print_format;
|
||||
if (param->value.type == EOLIAN_DEBUG_STRING)
|
||||
print_format = "%s %s = %s";
|
||||
else
|
||||
print_format = "%s %s = %lX";
|
||||
_eolian_type_to_string(eo_type, c_type);
|
||||
eolian_debug_sprint_value(&(param->value), val, _MAX_LABEL);
|
||||
snprintf(name, _MAX_LABEL,
|
||||
"%s %s = %s",
|
||||
print_format,
|
||||
c_type, eolian_parameter_name_get(type),
|
||||
val);
|
||||
param->value.value.value);
|
||||
|
||||
return strdup(name);
|
||||
}
|
||||
|
@ -272,16 +274,18 @@ static char *_obj_info_eo_ret_str_get(_Obj_info_node *node)
|
|||
{
|
||||
char name[_MAX_LABEL]; name[0] = '\0';
|
||||
char c_type[_MAX_LABEL];
|
||||
char val[_MAX_LABEL];
|
||||
Eolian_Debug_Return *param = node->data;
|
||||
param = node->data;
|
||||
|
||||
char *print_format;
|
||||
if (param->value.type == EOLIAN_DEBUG_STRING)
|
||||
print_format = "%s = %s";
|
||||
else
|
||||
print_format = "%s = %lX";
|
||||
_eolian_type_to_string(param->etype, c_type);
|
||||
eolian_debug_sprint_value(&(param->value), val, _MAX_LABEL);
|
||||
snprintf(name, _MAX_LABEL,
|
||||
"%s = %s",
|
||||
print_format,
|
||||
c_type,
|
||||
val);
|
||||
param->value.value.value);
|
||||
|
||||
return strdup(name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue