CV-Bowen opened a new pull request, #4118:
URL: https://github.com/apache/nuttx-apps/pull/4118

   ## Summary
   
   `setlogmask()` becomes a per-process value in apache/nuttx#22233, so the
   `setlogmask` command, which calls it and exits, would change only its
   own mask and have no effect. It already has no effect in the kernel
   build today, where each process has its own copy of the mask.
   
   - `system/setlogmask: set the system wide mask with nx_setlogmask()`:
     use `nx_setlogmask()`, which sets the mask of all task groups and of
     the groups created later.
   
   Depends on apache/nuttx#22233.
   
   ## Impact
   
   - `setlogmask <level>` changes the log level of the whole system in all
     build modes; in the kernel build it starts to work.
   - Needs `nx_setlogmask()` from apache/nuttx#22233; does not build
     without it.
   
   ## Testing
   
   Host: Ubuntu 22.04.5 LTS x86_64, QEMU version 10.2.1, sim: cc (Ubuntu 
13.1.0-8ubuntu1~22.04) 13.1.0, qemu-armv8a: aarch64-none-elf-gcc (Arm GNU 
Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205, arm: arm-none-eabi-gcc 
(GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1
   
   Tested together with apache/nuttx#22233 on sim:nsh (flat),
   mps2-an500:citest_protected (protected) and qemu-armv7a:knsh (kernel);
   see that PR for the commands and logs. With this change `setlogmask e`
   hides INFO messages of the tasks that start afterwards, and
   `setlogmask d` brings them back, in all three builds. Before it,
   `setlogmask e` had no effect in the kernel build.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to