gallium/util: make use of strtol() in debug_get_num_option()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Sep 2016 18:37:11 +0000 (20:37 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Sep 2016 17:39:04 +0000 (19:39 +0200)
commitbe0535b8c7a84659e2829c8d0bfd7f2847e71825
treefcddb029b13d3179dfbc0a97f11072c6934f6e2c
parent5da24242b3a54f31da153d67d55cd0f8547582f9
gallium/util: make use of strtol() in debug_get_num_option()

This allows to use hexadecimal numbers which are automatically
detected by strtol() when the base is 0.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_debug.c