/* Print on the screen in a neat fashion all the info we have collected on a device.  */
static int print_info(int skfd, char *ifname, char *args[], int count)
/* Print on the screen in a neat fashion all the info we have collected on a device.  */
static int print_info(int skfd, char *ifname, char *args[], int count)
{
  struct wireless_info	info;
  int			rc;
  args = args; count = count;
  rc = get_info(skfd, ifname, &info);
  switch(rc)
    {
    case 0:
      display_info(&info, ifname);
      break;
    case -ENOTSUP:
      fprintf(stderr, "%-8.16s  no wireless extensions.\n\n",
	      ifname);
      break;
    default:
      fprintf(stderr, "%-8.16s  %s\n\n", ifname, strerror(-rc));
    }
  return(rc);
}