Mentions légales du service

Skip to content
Snippets Groups Projects
Commit dc4ad4c0 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

parameters: fix error message to use function name

parent 8cf5bbe7
No related branches found
No related tags found
1 merge request!468Many minor hotfix issued from the mixed precision branch
...@@ -690,19 +690,19 @@ parameters_getvalue_fixdbl( const char *name ) ...@@ -690,19 +690,19 @@ parameters_getvalue_fixdbl( const char *name )
} }
if ( param->has_arg > 1 ) { if ( param->has_arg > 1 ) {
fprintf( stderr, "parameters_getvalue_double should not be called with parameter %s\n", name ); fprintf( stderr, "parameters_getvalue_fixdbl should not be called with parameter %s\n", name );
return -1; return -1;
} }
if ( param->valtype != TestValDouble ) { if ( param->valtype != TestValDouble ) {
fprintf( stderr, "parameters_getvalue_double has been called with a non float parameter (%s)\n", name ); fprintf( stderr, "parameters_getvalue_fixdbl has been called with a non float parameter (%s)\n", name );
return -1; return -1;
} }
return param->value.dval; return param->value.dval;
} }
fprintf( stderr, "parameters_getvalue_int could not find parameter %s\n", name ); fprintf( stderr, "parameters_getvalue_fixdbl could not find parameter %s\n", name );
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment