Check printf-style arguments with __attribute__((format(printf, 1, 2)))
Make GCC 14 check the arguments of your own printf-style logger with __attribute__((format(printf, 1, 2))), the same way it checks printf.
Short posts that solve one thing: the code, the output we got, and why it works.
Make GCC 14 check the arguments of your own printf-style logger with __attribute__((format(printf, 1, 2))), the same way it checks printf.
SYSCALL_DEFINE2() declares a system call with two arguments, builds its wrapper, and needs one line in the syscall table (Linux 6.12, x86-64).
Make a program addressable with BALR 12,0 and USING *,12 so the assembler can turn labels into base and displacement on z/OS 3.1.
Accept exactly four CAN standard IDs on STM32 bxCAN with one filter bank in 16-bit identifier list mode, shifting each ID left by five.
Cap the CPU time a process may use with setrlimit and RLIMIT_CPU on Linux 6.12, catch the SIGXCPU warning at the soft limit, and know when SIGKILL follows.
Ask wgpu 24 for a high-performance GPU adapter with Instance::request_adapter, handle the Option it returns and print the adapter's name and backend.
Call getpid (39) in GNU as 2.43 and print the result as decimal digits, built backwards with div by 10; the pid differs every run.
Find out which loops GCC 14 refused to vectorise with -fopt-info-vec-missed, which prints the loop's location and the reason it gave up.
alloc_etherdev() allocates a net_device with Ethernet defaults and your private struct behind it; fetch that struct with netdev_priv() (Linux 6.12).
Start a REXX exec with a first-line comment that contains the word REXX so TSO runs it as REXX on z/OS 3.1.
Raise the Arduino I2C bus to 400 kHz by calling Wire.setClock(400000) after Wire.begin, and see what TWBR holds on a 16 MHz ATmega328P.
Look up the account name of the effective user in C with geteuid and getpwuid_r on Linux with glibc 2.41, without trusting the USER variable or getlogin.
We send one email when a new post is published. No spam.