IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2006, 6:34:28 PM (20 years ago)
Author:
jhoblitt
Message:

add gcc format attributes to:

psAbort()
psErrorStackPrint()
p_psError()
p_psWarning()
psLogMsg()
p_psTrace()

add PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL
add PS_ASSERT_S64_WITHIN_RANGE
fix PS_ASSERT_LONG_WITHIN_RANGE
fix a wide range of format related issues:

  • missing format field specifiers
  • missing format args
  • incorrect format field specifiers
  • constants declared with the wrong type (float vs. int)
  • PS_ASSERT* for the wrong type
  • attemps to print structs with *printf()
  • unportable format specifiers, eg. long vs. long long
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizeLMM.c

    r8245 r8627  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-08-09 02:26:44 $
     12 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-08-26 04:34:28 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    181181    psF64 rcF64 = p_psMinLM_SetABX(alpha, beta, params, paramMask, x, y, dy, func);
    182182    if (isnan(rcF64)) {
    183         psTrace (__func__, 5, "p_psMinLM_SetABX() returned a NAN.\n");
     183        psTrace ("psLib.math", 5, "p_psMinLM_SetABX() returned a NAN.\n");
    184184        rc = false;
    185185    }
    186     psTrace("psLib.math", 5, "p_psMinLM_SetABX() was succesful\n", __func__);
     186    psTrace("psLib.math", 5, "p_psMinLM_SetABX() was succesful\n");
    187187
    188188    psBool rcBool = p_psMinLM_GuessABP(Alpha, delta, Params, alpha, beta, params, paramMask, NULL, NULL, NULL, 0.0);
    189189    if (rcBool == false) {
    190         psTrace (__func__, 5, "p_psMinLM_GuessABP() returned FALSE.\n");
     190        psTrace ("psLib.math", 5, "p_psMinLM_GuessABP() returned FALSE.\n");
    191191        rc = false;
    192192    }
    193     psTrace("psLib.math", 5, "p_psMinLM_GuessABP() was succesful\n", __func__);
     193    psTrace("psLib.math", 5, "p_psMinLM_GuessABP() was succesful\n");
    194194
    195195    psFree(alpha);
     
    200200        psFree(dy);
    201201    }
    202     psTrace("psLib.math", 3, "---- %s() end ----\n", __func__);
     202    psTrace("psLib.math", 3, "---- end ----\n");
    203203    return(rc);
    204204}
     
    417417        psTrace("psLib.math", 6, "The current Param vector: \n");
    418418        for (psS32 i = 0 ; i < Params->n ; i++) {
    419             psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
     419            psTrace("psLib.math", 6, "Params[%d] is %f\n", i, Params->data.F32[i]);
    420420        }
    421421    }
     
    447447                psTrace("psLib.math", 6, "The current Param vector: \n");
    448448                for (psS32 i = 0 ; i < Params->n ; i++) {
    449                     psTrace("psLib.math", 6, "Params[%d] is %f\n", Params->data.F32[i]);
     449                    psTrace("psLib.math", 6, "Params[%d] is %f\n", i, Params->data.F32[i]);
    450450                }
    451451            }
Note: See TracChangeset for help on using the changeset viewer.