Make fatal log messages be written to stderr
authorCharles Giessen <charles@lunarg.com>
Thu, 27 Jul 2023 22:37:46 +0000 (16:37 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 28 Jul 2023 18:06:13 +0000 (12:06 -0600)
commitbf59b6347ea69e18b2655dbbda6b350c65910b5d
tree61bef5ffc1e68ce278b770f8bfffb0263e99d7d5
parentb93def1bd90481b0309d2bc329b0a72a1bcfb84c
Make fatal log messages be written to stderr

When the loader is about to call abort(), it calls loader_log to tell the user
why the loader is crashing. Unfortunately, unless the user set VK_LOADER_DEBUG
before starting the loader, they will not see this message. This commits adds
a new debug flag to signal to loader_log() that this message should be written
to stderr no matter what. This commit also changes all current loader_log call
sites that subsequently call abort() to use this flag.
loader/extension_manual.c
loader/generated/vk_loader_extensions.c
loader/log.c
loader/log.h
loader/trampoline.c
loader/wsi.c
scripts/loader_extension_generator.py