rem: dprintf("get_port_info: invalid port_id %d\n", id);
add: dprintf("get_port_info: invalid port_id %ld\n", id);
context: _get_port_info(port_id id, port_info *info, size_t size){	int slot;	int state;	if(ports_active == false)		return B_BAD_PORT_ID;	if (info == NULL)		return EINVAL;	if(id < 0)		return B_BAD_PORT_ID;	slot = id % MAX_PORTS;	state = disable_interrupts();	GRAB_PORT_LOCK(ports[slot]);	if(ports[slot].id != id) {		RELEASE_PORT_LOCK(ports[slot]);		restore_interrupts(state);		dprintf("get_port_info: invalid port_id %d\n", id);		return B_BAD_PORT_ID;	}	// fill a port_info struct with info	info->port			= ports[slot].id;//	info->owner 		= ports[slot].owner;	strncpy(info->name, ports[slot].name, min(strlen(ports[slot].name),SYS_MAX_OS_NAME_LEN-1));	info->capacity		= ports[slot].capacity;	get_sem_count(ports[slot].read_sem, &info->queue_count);	info->total_count	= ports[slot].total_count;	RELEASE_PORT_LOCK(ports[slot]);	restore_interrupts(state);		// from our port_entry	return B_NO_ERROR;}