提交 b0e8bfca 编写于 作者: T Thibaut Varene 提交者: Kyle McMartin

[PARISC] Reduce data footprint in pdc_stable.c

No code change - reduce data footprint.
Signed-off-by: NThibaut VARENE <varenet@parisc-linux.org>
Signed-off-by: NKyle McMartin <kyle@parisc-linux.org>
上级 3f9edb53
...@@ -628,16 +628,16 @@ pdcs_osid_read(struct subsystem *entry, char *buf) ...@@ -628,16 +628,16 @@ pdcs_osid_read(struct subsystem *entry, char *buf)
return -EINVAL; return -EINVAL;
switch (pdcs_osid) { switch (pdcs_osid) {
case 0x0000: tmpstr = "No OS-dependent data"; break; case 0x0000: tmpstr = "No OS"; break;
case 0x0001: tmpstr = "HP-UX dependent data"; break; case 0x0001: tmpstr = "HP-UX"; break;
case 0x0002: tmpstr = "MPE-iX dependent data"; break; case 0x0002: tmpstr = "MPE-iX"; break;
case 0x0003: tmpstr = "OSF dependent data"; break; case 0x0003: tmpstr = "OSF"; break;
case 0x0004: tmpstr = "HP-RT dependent data"; break; case 0x0004: tmpstr = "HP-RT"; break;
case 0x0005: tmpstr = "Novell Netware dependent data"; break; case 0x0005: tmpstr = "Novell Netware"; break;
case 0x0006: tmpstr = "Linux dependent data"; break; case 0x0006: tmpstr = "Linux"; break;
default: tmpstr = "Unknown"; break; default: tmpstr = "Unknown"; break;
} }
out += sprintf(out, "%s (0x%.4x)\n", tmpstr, pdcs_osid); out += sprintf(out, "%s dependent data (0x%.4x)\n", tmpstr, pdcs_osid);
return out - buf; return out - buf;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册