mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
18 lines
599 B
C
18 lines
599 B
C
#include "fastfetch.h"
|
|
|
|
void ffPrintKernel(FFinstance* instance)
|
|
{
|
|
if(instance->config.kernelFormat.length == 0)
|
|
{
|
|
ffPrintLogoAndKey(instance, "Kernel");
|
|
puts(instance->state.utsname.release);
|
|
}
|
|
else
|
|
{
|
|
ffPrintFormatString(instance, "Kernel", &instance->config.kernelFormat, 3,
|
|
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, instance->state.utsname.sysname},
|
|
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, instance->state.utsname.release},
|
|
(FFformatarg){FF_FORMAT_ARG_TYPE_STRING, instance->state.utsname.version}
|
|
);
|
|
}
|
|
} |