Skip to content
Snippets Groups Projects
Commit cf8defdb authored by Simon Rose's avatar Simon Rose
Browse files

Merge branch 'fix_errlog_buffer' into 'master'

The buffer must be strictly larger than the max message size

See merge request !37
parents 0808d141 00c0efa2
No related branches found
No related tags found
1 merge request!37The buffer must be strictly larger than the max message size
Pipeline #197308 passed
......@@ -32,8 +32,10 @@ class TemporaryStartupScript:
self.set_variable("IOCSH_TOP", Path.cwd())
self.set_variable("IOCSH_PS1", generate_prompt())
# The message size maximum must be slightly smaller than the buffer size
# (to account for the null terminator)
self.add_command(
f"errlogInit2 {DEFAULT_ERRLOG_BUFFER_SIZE} {DEFAULT_ERRLOG_BUFFER_SIZE}"
f"errlogInit2 {DEFAULT_ERRLOG_BUFFER_SIZE} {DEFAULT_ERRLOG_BUFFER_SIZE-1}"
)
# load require
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment