IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31445 for trunk/ippTools/src


Ignore:
Timestamp:
May 5, 2011, 10:33:46 AM (15 years ago)
Author:
eugene
Message:

fix un-inited values and printing type mismatches

Location:
trunk/ippTools/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src

  • trunk/ippTools/src/magictool.c

  • trunk/ippTools/src/pzgetimfiles.c

    r31038 r31445  
    125125    if (status != 0) {
    126126        // mark the summitExp row as faulted
    127         if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE summit_id = %ld", WEXITSTATUS(status), summit_id)) {
     127        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE summit_id = %lld", WEXITSTATUS(status), (long long) summit_id)) {
    128128            psError(PS_ERR_UNKNOWN, false, "database error");
    129129        }
     
    141141        // download an "empty" fileset.
    142142        // mark the summitExp row as faulted
    143         if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE summit_id = %ld", 250, summit_id)) {
     143        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE summit_id = %lld", 250, (long long) summit_id)) {
    144144                psError(PS_ERR_UNKNOWN, false, "database error");
    145145        }
  • trunk/ippTools/src/pztool.c

    r31051 r31445  
    638638    // set pzDownloadExp.state to 'stop'
    639639    if (!pzDownloadExpSetState(config, summit_id, "stop")) {
    640         psError(PS_ERR_UNKNOWN, false, "failed to change pzDownloadExp.state for %ld", summit_id);
     640        psError(PS_ERR_UNKNOWN, false, "failed to change pzDownloadExp.state for %lld", (long long) summit_id);
    641641        return false;
    642642    }
     
    913913    char *query = "UPDATE pzDownloadExp SET state = '%s' WHERE summit_id = %ld";
    914914    if (!p_psDBRunQueryF(config->dbh, query, state, summit_id)) {
    915         psError(PS_ERR_UNKNOWN, false, "failed to change state for %ld", summit_id);
     915        psError(PS_ERR_UNKNOWN, false, "failed to change state for %lld", (long long) summit_id);
    916916        return false;
    917917    }
     
    927927
    928928  if (!pzDownloadExpSetState(config,summit_id, state)) {
    929     psError(PS_ERR_UNKNOWN, false, "failed to change state for %ld", summit_id);
     929    psError(PS_ERR_UNKNOWN, false, "failed to change state for %lld", (long long) summit_id);
    930930    return false;
    931931  }
  • trunk/ippTools/src/stacktool.c

    r31249 r31445  
    487487        // Define the requested association, and insert it if it doesn't already exist
    488488        stackAssociationRow *association = pxStackAssociationDefine(config,stack_id);
    489         psS64 sass_id;
     489        psS64 sass_id=-1;
    490490        if (!association->sass_id) {
    491491          psTrace("stacktool.association",2,"No required Association found. Adding.");
Note: See TracChangeset for help on using the changeset viewer.