-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save the debug and error logs in mok-variables #726
base: main
Are you sure you want to change the base?
Conversation
30daae0
to
575fbc5
Compare
The result here is you get something like: |
575fbc5
to
d42eccc
Compare
561c613
to
7913f64
Compare
This fixes some minor errors with the testing of how ALIGN() and similar are defined, and makes an explicit "ALIGN_UP()" macro to complement the existing ALIGN_DOWN() macro. Signed-off-by: Peter Jones <pjones@redhat.com>
This moves decls for errlog.c into errlog.h Signed-off-by: Peter Jones <pjones@redhat.com>
7913f64
to
de48793
Compare
This changes our debug and error logging to save the entire logs into mok-variables as "shim-dbg.txt" and "shim-log.txt". Signed-off-by: Peter Jones <pjones@redhat.com>
Previously when there were no load options, this would go in the debug log: load-options.c:313:parse_load_options() full load options: include/hexdump.h:92:vhexdumpf() hexdump of a NULL pointer! This changes it to say: load-options.c:315:parse_load_options() LoadOptions is empty Signed-off-by: Peter Jones <pjones@redhat.com>
de48793
to
d1eb01e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change 4096 on line 149 of errlog.c to PAGE_SIZE, even if it will probably always be 4k. Otherwise this looks.
CHAR16 *new_debug_log; | ||
|
||
new_alloc_sz += buf_sz; | ||
new_alloc_sz = ALIGN_UP(new_alloc_sz, 4096); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be PAGE_SIZE
This changes our debug and error logging to save the entire logs into mok-variables as "shim-dbg.txt" and "shim-log.txt".