Changeset 1461

Show
Ignore:
Timestamp:
11/22/08 13:29:34 (12 years ago)
Author:
ppalmers
Message:

cosmetics

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/tests/test-ffado.cpp

    r1371 r1461  
    240240    struct arguments arguments; 
    241241 
     242    printf("-----------------------------------------------\n"); 
     243    printf("FFADO test and diagnostic utility\n"); 
     244    printf("Part of the FFADO project -- www.ffado.org\n"); 
     245    printf("Version: %s\n", PACKAGE_VERSION); 
     246    printf("(C) 2008, Daniel Wagner, Pieter Palmers\n"); 
     247    printf("This program comes with ABSOLUTELY NO WARRANTY.\n"); 
     248    printf("-----------------------------------------------\n\n"); 
     249 
     250    // check the library version 
     251    const char *libversion = ffado_get_version(); 
     252    const char *progversion = PACKAGE_STRING; 
     253    if(strcmp(libversion, progversion) != 0) { 
     254        printf("Library version mismatch. (required: %s, present: %s)\n", progversion, libversion); 
     255        printf("Please run this application against the exact corresponding library\n"); 
     256        printf("it was compiled for. The most common cause for this is having more\n"); 
     257        printf("than one version of libffado installed.\n\n"); 
     258        return exitfunction(-1); 
     259    } 
     260 
    242261    // Default values. 
    243262    arguments.nargs       = 0; 
     
    257276        return exitfunction(-1); 
    258277    } 
    259  
    260     printf("verbose level = %ld\n", arguments.verbose); 
    261278    setDebugLevel(arguments.verbose); 
    262  
    263     printf( "Using ffado library version: %s\n\n", ffado_get_version() ); 
    264279 
    265280    if ( strcmp( arguments.args[0], "Discover" ) == 0 ) {