[S390] call home: fix local buffer usage in proc handler
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 29 Oct 2009 14:04:07 +0000 (15:04 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Thu, 29 Oct 2009 14:05:12 +0000 (15:05 +0100)
commit3f0b3c33eeed400577b47fab8439ffe6f40aa97a
tree42900d693cb11c0df028daed1e17ac499eff1ed7
parent964fe080d94db82a3268443e9b9ece4c60246414
[S390] call home: fix local buffer usage in proc handler

Fix the size of the local buffer and use snprintf to prevent
further miscalculations. Also fix the usage of bitwise vs logic
operations.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_async.c