mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: Make _mesa_print_arrays use stderr.
These days, most driver debug output happens via stderr, not stdout. Some applications (such as Xephyr) also appear to close stdout which makes these messages go nowhere. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
7b4276d7ac
commit
8892a6b79c
1 changed files with 3 additions and 3 deletions
|
|
@ -1907,10 +1907,10 @@ static void
|
|||
print_array(const char *name, GLint index, const struct gl_client_array *array)
|
||||
{
|
||||
if (index >= 0)
|
||||
printf(" %s[%d]: ", name, index);
|
||||
fprintf(stderr, " %s[%d]: ", name, index);
|
||||
else
|
||||
printf(" %s: ", name);
|
||||
printf("Ptr=%p, Type=0x%x, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %lu)\n",
|
||||
fprintf(stderr, " %s: ", name);
|
||||
fprintf(stderr, "Ptr=%p, Type=0x%x, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %lu)\n",
|
||||
array->Ptr, array->Type, array->Size,
|
||||
array->_ElementSize, array->StrideB,
|
||||
array->BufferObj->Name, (unsigned long) array->BufferObj->Size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue