swconfig: use print_attr_val() in CMD_GET