diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2010-08-09 12:12:56 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-08-09 12:12:54 -0400 |
commit | 41b42876772bb8c1cbd7e68d384791f97a5fd0d6 (patch) | |
tree | 4c36156660fb747184f218c21c4632c1f2bf1c7e /drivers/s390 | |
parent | 2e85ba510ede4aea1b150493407ae911e8ea5051 (diff) |
[S390] cmm, smsgiucv_app: convert sender to uppercase
The sender kernel parameter contains a z/VM user ID where
alphabetic characters must be specified in uppercase.
Allow users to specify lowercase characters and convert the
sender string to uppercase at module initialization.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/smsgiucv_app.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/s390/net/smsgiucv_app.c b/drivers/s390/net/smsgiucv_app.c index 137688790207..4d2ea4000422 100644 --- a/drivers/s390/net/smsgiucv_app.c +++ b/drivers/s390/net/smsgiucv_app.c | |||
@@ -180,6 +180,13 @@ static int __init smsgiucv_app_init(void) | |||
180 | goto fail_put_driver; | 180 | goto fail_put_driver; |
181 | } | 181 | } |
182 | 182 | ||
183 | /* convert sender to uppercase characters */ | ||
184 | if (sender) { | ||
185 | int len = strlen(sender); | ||
186 | while (len--) | ||
187 | sender[len] = toupper(sender[len]); | ||
188 | } | ||
189 | |||
183 | /* register with the smsgiucv device driver */ | 190 | /* register with the smsgiucv device driver */ |
184 | rc = smsg_register_callback(SMSG_PREFIX, smsg_app_callback); | 191 | rc = smsg_register_callback(SMSG_PREFIX, smsg_app_callback); |
185 | if (rc) { | 192 | if (rc) { |