Update to 0.75 and drop upstreamed patch

This commit is contained in:
Jan Synacek 2013-01-07 14:48:22 +01:00
parent 9cf87b3f4e
commit 9e88dee844
3 changed files with 2 additions and 26 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/ledmon-0.40.tar.bz2 /ledmon-0.40.tar.bz2
/ledmon-0.72.tar.bz2 /ledmon-0.72.tar.bz2
/ledmon-0.74.tar.bz2 /ledmon-0.74.tar.bz2
/ledmon-0.75.tar.gz

View File

@ -1,25 +0,0 @@
--- ledmon-0.74/src/scsi.c.orig 2012-08-09 15:57:15.000000000 +0200
+++ ledmon-0.74/src/scsi.c 2012-11-15 10:12:43.387078547 +0100
@@ -436,11 +436,11 @@ static void print_page10(struct ses_page
printf("\tDevice type: 0x%01x\n", ((sas[0] & 0x70) >> 4));
printf("\tSMP Initiator Port: 0x%01x\n", ((sas[2] & 2)>>1));
printf("\tSTP Initiator Port: 0x%01x\n", ((sas[2] & 4)>>2));
- printf("\tSSP Initiator Port: 0x%01x\n", ((sas[2] & 8)>>4));
+ printf("\tSSP Initiator Port: 0x%01x\n", ((sas[2] & 8)>>3));
printf("\tSATA DEVICE: 0x%01x\n", (sas[3] & 1));
printf("\tSMP Target Port: 0x%01x\n", ((sas[3] & 2)>>1));
printf("\tSTP Target Port: 0x%01x\n", ((sas[3] & 4)>>2));
- printf("\tSSP Target Port: 0x%01x\n", ((sas[3] & 8)>>4));
+ printf("\tSSP Target Port: 0x%01x\n", ((sas[3] & 8)>>3));
printf("\tSATA Port Selector: 0x%01x\n", ((sas[3] & 0X80)>>7));
printf("\tAttached SAS Address: 0x%02x%02x%02x%02x%02x%02x%02x%02x\n",
sas[4], sas[5], sas[6], sas[7], sas[8], sas[9], sas[10], sas[11]);
@@ -597,7 +597,7 @@ static char* get_drive_end_dev(const cha
if (!s) {
return NULL;
}
- p = calloc(s-c, sizeof(*p));
+ p = calloc(s-c+1, sizeof(*p));
if (!p)
return NULL;

View File

@ -1 +1 @@
4e34588e249c2f6e7713a2447be85db0 ledmon-0.74.tar.bz2 6743aa8fe0c5d9890e8f643d6916b1ce ledmon-0.75.tar.gz