Simon Ser
|
32683879e7
|
Add newline after function return type
Aligns our style with Linux' and Weston's.
|
2021-08-13 22:02:33 +02:00 |
|
Simon Ser
|
f5a2b541ce
|
Make liftoff_device_register_all_planes return an int
For consistency with liftoff_output_apply.
|
2021-07-30 16:19:29 +02:00 |
|
Simon Ser
|
b08bbaa5e6
|
Split liftoff_log_init into set_handler and set_priority
This allows callers to change only one of those, without the other.
Also rename importance to priority and func to handler.
|
2021-03-31 12:44:24 +02:00 |
|
Roman Gilg
|
d68b1fc8d7
|
Add log verbosity helper
Separate function to check verbosity level, which can be used in other internal
parts as well.
|
2020-03-08 13:05:30 +01:00 |
|
Simon Ser
|
af36f762ca
|
log: reset log callback to default when NULL is passed
|
2019-10-30 20:52:30 +01:00 |
|
Simon Ser
|
ba80e32054
|
Introduce liftoff_log_errno
Like perror, but uses the liftoff logging infrastructure.
|
2019-10-19 13:35:14 +03:00 |
|
Simon Ser
|
1ee86c6290
|
Add logging functions
This allows turning on and off debug logs, as well as defining a logging
callback.
|
2019-10-11 12:03:14 +03:00 |
|