Make API debig logging clearer: add quotes around string values so we
can see whitespace errors. Add int cast for device code.