Changeset 9296

Show
Ignore:
Timestamp:
04/28/09 15:02:08 (4 years ago)
Author:
mcarrick
Message:

clarifying debug statements

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/mcarrick/ossiedev-trunk/components/CostasLoop/CostasLoopFPGAInterface.c

    r9294 r9296  
    2626    if( memfd == -1 ) 
    2727    { 
    28         printf("Can't open /dev/mem.\n"); 
     28        printf("CL-Interface: Can't open /dev/mem.\n"); 
    2929        exit(EXIT_FAILURE); 
    3030    } 
    31     printf("/dev/mem opened.\n"); 
     31    printf("CL-Interface: /dev/mem opened.\n"); 
    3232 
    3333    mapped_base = mmap(0, MAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, memfd, dev_base & ~MAP_MASK); 
    3434    if( mapped_base == (void *) -1 ) 
    3535    { 
    36         printf("Can't map the memory to user space.\n"); 
     36        printf("CL-Interface: Can't map the memory to user space.\n"); 
    3737        exit(EXIT_FAILURE); 
    3838    } 
    39     printf("Memory mapped at address %p.\n", mapped_base); 
     39    printf("CL-Interface: Memory mapped at address %p.\n", mapped_base); 
    4040 
    4141    mapped_dev_base = mapped_base + (dev_base & MAP_MASK); 
     
    6565        if (val != 0xDEADDEAD) 
    6666        { 
    67             printf("Caught exit sequence on the bus, stopping poll loop\n"); 
    68             printf("Waited for %d cycles\n", j); 
     67            printf("CL-Interface: Caught exit sequence on the bus, stopping poll loop\n"); 
     68            printf("CL-Interface: Waited for %d cycles\n", j); 
    6969            samples[0] = val; 
    7070            stop = 1; // stop waiting for FPGA circuit, start reading 
     
    7575    if (stop == 0) 
    7676    { 
    77         printf("Never received ready flag\n"); 
     77        printf("CL-Interface: Never received ready flag\n"); 
    7878    } 
    7979    else 
    8080    { 
    81         printf("Reading back 512 samples\n"); 
     81        printf("CL-Interface: Reading back 512 samples\n"); 
    8282 
    8383         // read back 512 samples 
     
    9393    for (p = 0; p < 512; p++) 
    9494    { 
    95         printf("Sample %d: #%x\n", p, samples[p]); 
     95        printf("CL-Interface: Sample %d: #%x\n", p, samples[p]); 
    9696    } 
    9797} 
     
    102102    if( munmap(mapped_base, MAP_SIZE) == -1 ) 
    103103    { 
    104         printf("Can't unmap memory from user space.\n"); 
     104        printf("CL-Interface: Can't unmap memory from user space.\n"); 
    105105        exit(EXIT_FAILURE); 
    106106    }