More SPRINTF woes! [solved]

You need to tell sprintf if a variable is long.

    const char *mask = "Value is 0x%08lX\r\n";