fix compiler warnings in kdm.h

accidentally deleted a printf argument and fix a -Wsequence-point