mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 15:04:19 +01:00
15 lines
532 B
C
15 lines
532 B
C
#include "fastfetch.h"
|
|
|
|
void ffPrintKernel(FFinstance* instance)
|
|
{
|
|
ffPrintLogoAndKey(instance, "Kernel");
|
|
|
|
if(instance->config.kernelShowRelease && instance->config.kernelShowVersion)
|
|
printf("%s %s\n", instance->state.utsname.release, instance->state.utsname.version);
|
|
else if(instance->config.kernelShowRelease)
|
|
puts(instance->state.utsname.release);
|
|
else if(instance->config.kernelShowVersion)
|
|
puts(instance->state.utsname.version);
|
|
else
|
|
puts(instance->state.utsname.sysname);
|
|
} |