~juanje/udev/udev-acls-android

« back to all changes in this revision

Viewing changes to extras/scsi_id/scsi_id.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-12-02 01:40:55 UTC
  • Revision ID: james.westby@ubuntu.com-20091202014055-g5f7k5z3db7njmlj
Tags: 148~-1
* Update to GIT HEAD:
  - Ignore_device option removed.
  - BUS, SYSFS and ID are now deprecated and result in a warning.
  - IDE device support removed from default rules.
  - New input_id helper, previous uses of the ID_CLASS property on
    input devices should now use the new ID_INPUT_* properties.  This
    is a big part of the Halsectomy of X.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
        if (export) {
550
550
                char serial_str[MAX_SERIAL_LEN];
551
551
 
 
552
                printf("ID_SCSI=1\n");
552
553
                printf("ID_VENDOR=%s\n", vendor_str);
553
554
                printf("ID_VENDOR_ENC=%s\n", vendor_enc_str);
554
555
                printf("ID_MODEL=%s\n", model_str);
563
564
                        udev_util_replace_chars(serial_str, NULL);
564
565
                        printf("ID_SERIAL_SHORT=%s\n", serial_str);
565
566
                }
 
567
                if (dev_scsi.wwn[0] != '\0') {
 
568
                        printf("ID_WWN=0x%s\n", dev_scsi.wwn);
 
569
                }
 
570
                if (dev_scsi.unit_serial_number[0] != '\0') {
 
571
                        printf("ID_SCSI_SERIAL=%s\n", dev_scsi.unit_serial_number);
 
572
                }
566
573
                goto out;
567
574
        }
568
575