Ticket #251: emxomf.patch

File emxomf.patch, 1.5 KB (added by Yuri Dario, 13 years ago)

Verbose option

  • emxomf.c

     
    407407/* Supress certain warnings if this variable is TRUE (-q option). */
    408408static int quiet = FALSE;
    409409
     410/* Show more warnings if this variable is TRUE (-v option). */
     411static int verbose = FALSE;
     412
    410413/* The libreq_head variable contains a pointer to the head of the list
    411414   of default libraries.  The -i option is used to add a default
    412415   library request.  The libreq_add pointer is used for appending new
     
    822825        memcpy(pszOutBuf + SYMBOL_MAX_LENGTH, szHash, SYMBOL_HASH_LENGTH);
    823826        pszOutBuf[SYMBOL_MAX_LENGTH + SYMBOL_HASH_LENGTH] = '\0';
    824827
    825         warning ("Truncated symbol '%.*s' to '%.*s%s'", cch, pszName, SYMBOL_MAX_LENGTH, pszName, szHash);
     828        if (verbose)
     829                warning ("Truncated symbol '%.*s' to '%.*s%s'", cch, pszName, SYMBOL_MAX_LENGTH, pszName, szHash);
    826830
    827831        cch = SYMBOL_MAX_LENGTH + SYMBOL_HASH_LENGTH;
    828832    }
     
    37443748  puts ("  -O <directory>     Extract files to <directory>");
    37453749  puts ("  -z                 Remove underscores from all symbol names");
    37463750  puts ("  -P <dbgpackdll>    Name the dbgpack DLL (ilink)");
     3751  puts ("  -v                 Show more warnings (truncated symbols)");
    37473752  exit (1);
    37483753}
    37493754
     
    42444249      case 'u':
    42454250        unknown_stabs = TRUE;
    42464251        break;
     4252      case 'v':
     4253        verbose = TRUE;
     4254        break;
    42474255      case 'x':
    42484256        opt_x = TRUE;
    42494257        break;