mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
19 lines
600 B
C
19 lines
600 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}
|
|
);
|
|
}
|
|
}
|