
/*   
 *  backdoor read test
 *
 * :set expandtab
 * :set shiftwidth=4
 * :set tabstop=4
 */

#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include "dv.h"

void 
testUsage()
{
    printf("Test function: turn on/off dump\n");
    printf("\t 0-off 1-on \n");
    
    return;
}

int testProc(void *p)
{
    DVCmdStructPnt pcmd;
    int on = 0;

    if (p == NULL) {
        printf("ERROR: Invalid data pointer\n");
        return -1;
    }

    pcmd = (DVCmdStructPnt) p;
    if (pcmd->argc > 1)  on = atoi(pcmd->argv[1]);
    DV_CpuBdSetDump(on);

    return 0;
}
