mesa: eliminate debug output message_insert
authorChia-I Wu <olvaffe@gmail.com>
Tue, 22 Apr 2014 06:36:25 +0000 (14:36 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sun, 27 Apr 2014 02:06:20 +0000 (10:06 +0800)
commit94e45c98e18f4af8d289a4db30b3c076029c60c6
treeba66cd9be7f7441186fbe84605fa0233e9f04140
parent188d22d9b7b7e3da99506d14e71166a11d53968b
mesa: eliminate debug output message_insert

Add validate_length, and call it together with log_msg directly instead of
message_insert.  No functional change.

v2: make sure length is non-negative (i.e., known) before calling
    validate_length, noted by Timothy Arceri

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/errors.c