Hello! > How about: > > static void print_vpd_string(const u8 *buf, size_t len) > { > while (len--) > { > unsigned char ch = *buf++; > if (ch == '\\') > printf("\\\\"); > else if (ch < 32 || ch == 127) > printf("\\x%02x", ch); > else > putchar(ch); > } > } Yes, that's fine. Have a nice fortnight -- Martin `MJ' Mares <mj@xxxxxx> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "A semicolon. Another line ends in the dance of camel." -- Kabir Ahuja -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html