/* Compose string with hostname. buf is assumed to have enough space, and be null-terminated.  */
static void compose_hostname(hw_id_t hw_id, char *buf)
/* Compose string with hostname. buf is assumed to have enough space, and be null-terminated.  */
static void compose_hostname(hw_id_t hw_id, char *buf)
{
	char *p;
	strncat(buf, &hw_id[PCB_NAME][0], hw_id_format[PCB_NAME].length);
	strncat(buf, "_", 1);
	strncat(buf, &hw_id[FORM][0], hw_id_format[FORM].length);
	strncat(buf, &hw_id[VERSION][0], hw_id_format[VERSION].length);
	for (p = buf; *p; ++p)
		*p = tolower(*p);
}