#ident "$Id: debug.c,v 1.1 2006/12/28 20:11:26 craig Exp $"
/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */

/*
 * Functions used only for debugging
 * 
 */

#include "debug.h"
#define DEBUG(...)      printf(__VA_ARGS__)

/* ------------------------------------------------------------------------ */

void
printMD5sum(const void* const ptr, const u32 numBytes)
{
    md5_state_t state;
    md5_byte_t digest[16];
    int idx;

    md5_init(&state);
    md5_append(&state, ptr, numBytes);
    md5_finish(&state, digest);

    for (idx = 0; idx < 16; idx++) {
        DEBUG("%02x", digest[idx]);
    }
}
/* ------------------------------------------------------------------------ */
