Bugfixing Header-Output

Return value of function should be first loaded into a variable before
use this in printf().