diff --git a/src/common.c b/src/common.c index ddcd13475..3eaf0948b 100644 --- a/src/common.c +++ b/src/common.c @@ -305,6 +305,7 @@ bool ffPrintCachedValue(FFinstance* instance, const char* key) void ffPrintAndSaveCachedValue(FFinstance* instance, const char* key, FFstrbuf* value) { + ffPrintLogoAndKey(instance, key); ffStrbufWriteTo(value, stdout); putchar('\n'); diff --git a/src/modules/cpu.c b/src/modules/cpu.c index 8bb400eb7..fcc50a333 100644 --- a/src/modules/cpu.c +++ b/src/modules/cpu.c @@ -33,8 +33,6 @@ void ffPrintCPU(FFinstance* instance) int numProcs = get_nprocs(); - ffPrintLogoAndKey(instance, "CPU"); - FF_STRBUF_CREATE(cpu); if(ffStrbufIsEmpty(&instance->config.cpuFormat)) diff --git a/src/modules/gpu.c b/src/modules/gpu.c index 6e0f8227c..56ed9b8e0 100644 --- a/src/modules/gpu.c +++ b/src/modules/gpu.c @@ -11,8 +11,6 @@ static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_ if(ffPrintCachedValue(instance, key)) return; - FF_STRBUF_CREATE(gpu); - char vendor[512]; ffpci_lookup_name(pacc, vendor, sizeof(vendor), PCI_LOOKUP_VENDOR, dev->vendor_id, dev->device_id); @@ -25,7 +23,7 @@ static void handleGPU(FFinstance* instance, struct pci_access* pacc, struct pci_ char name[512]; ffpci_lookup_name(pacc, name, sizeof(name), PCI_LOOKUP_DEVICE, dev->vendor_id, dev->device_id); - ffPrintLogoAndKey(instance, "GPU"); + FF_STRBUF_CREATE(gpu); if(ffStrbufIsEmpty(&instance->config.gpuFormat)) { diff --git a/src/modules/host.c b/src/modules/host.c index 992838510..f5dd4e756 100644 --- a/src/modules/host.c +++ b/src/modules/host.c @@ -20,8 +20,6 @@ void ffPrintHost(FFinstance* instance) return; } - ffPrintLogoAndKey(instance, "Host"); - FF_STRBUF_CREATE(host); if(!ffStrbufIsEmpty(&instance->config.hostFormat)) diff --git a/src/modules/locale.c b/src/modules/locale.c index a107120fe..64e576bd8 100644 --- a/src/modules/locale.c +++ b/src/modules/locale.c @@ -39,8 +39,6 @@ void ffPrintLocale(FFinstance* instance) fclose(fp); } - ffPrintLogoAndKey(instance, "Locale"); - FF_STRBUF_CREATE(locale); if(ffStrbufIsEmpty(&instance->config.localeFormat)) diff --git a/src/modules/os.c b/src/modules/os.c index 61314a6d9..40d1c36f0 100644 --- a/src/modules/os.c +++ b/src/modules/os.c @@ -13,8 +13,6 @@ void ffPrintOS(FFinstance* instance) return; } - ffPrintLogoAndKey(instance, "OS"); - FF_STRBUF_CREATE(os); if(!ffStrbufIsEmpty(&instance->config.osFormat)) diff --git a/src/modules/resolution.c b/src/modules/resolution.c index 5ec2ddfef..05cd0621e 100644 --- a/src/modules/resolution.c +++ b/src/modules/resolution.c @@ -74,8 +74,6 @@ void ffPrintResolution(FFinstance* instance) dlclose(x11); - ffPrintLogoAndKey(instance, "Resolution"); - FF_STRBUF_CREATE(resolution); if(!ffStrbufIsEmpty(&instance->config.resolutionFormat)) diff --git a/src/modules/shell.c b/src/modules/shell.c index 06384be1e..fc91df7e8 100644 --- a/src/modules/shell.c +++ b/src/modules/shell.c @@ -27,8 +27,6 @@ void ffPrintShell(FFinstance* instance) ++shellName; } - ffPrintLogoAndKey(instance, "Shell"); - FF_STRBUF_CREATE(shell); if(!ffStrbufIsEmpty(&instance->config.shellFormat))