2021-02-18 22:25:36 +01:00
|
|
|
#include "fastfetch.h"
|
|
|
|
|
|
2021-02-27 18:30:05 +01:00
|
|
|
void ffPrintKernel(FFinstance* instance)
|
2021-02-18 22:25:36 +01:00
|
|
|
{
|
2021-02-27 18:30:05 +01:00
|
|
|
ffPrintLogoAndKey(instance, "Kernel");
|
2021-03-07 20:35:17 +01:00
|
|
|
|
|
|
|
|
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);
|
2021-02-18 22:25:36 +01:00
|
|
|
}
|