Alternatively, you could use sprintf.
Call an extra string that will hold your integer as a number:
Print your integer to the string and then print the string:
sprintf(szTemp,"%d",NinjaHealth);
dbPrint(szTemp);
sprintf(szTemp,"%d",DwarfHealth);
dbPrint(szTemp);
This method is preferable, because you can print other text as well, in a similar fashion to normal printf. Look at this example:
sprintf(szTemp,"Ninja health: %d",NinjaHealth);
dbPrint(szTemp);
This now gives you the ability to add a label, which allows you to debug faster. And finally, the fastest and best solution:
sprintf(szTemp,"Ninja health: %d - Dwarf health: %d",NinjaHealth,DwarfHealth);
dbPrint(szTemp);
My site, for various stuff that I make.