[syslinux:firmware] mem: explicitly include dprintf.h

syslinux-bot for Matt Fleming matt.fleming at intel.com
Wed Jul 24 07:24:05 PDT 2013

Commit-ID:  d6c6b67fe70af665e4fb1fd6a3fffa6365b0eeda
Gitweb:     http://www.syslinux.org/commit/d6c6b67fe70af665e4fb1fd6a3fffa6365b0eeda
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 24 Jul 2013 10:37:00 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 24 Jul 2013 10:37:00 +0100

mem: explicitly include dprintf.h

It is good practice to explicitly include required header files as it
clearly highlights dependencies.

This practice also makes it easier to write unit tests since we
explicitly include dummy header files from unittest/include.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 core/mem/init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/mem/init.c b/core/mem/init.c
index dc28de0..246d2e0 100644
--- a/core/mem/init.c
+++ b/core/mem/init.c
@@ -4,6 +4,7 @@
 #include "malloc.h"
 #include "core.h"
 #include <syslinux/memscan.h>
+#include <dprintf.h>
 struct free_arena_header __core_malloc_head[NHEAP];

More information about the Syslinux-commits mailing list