Oh, and btw, you might want to lookup the __func__ macro which will automatically expand to the function name.