/* descriptors that are built on-demand */
+#define PNP_STRING_LEN 1024
+
static char product_desc [40] = DRIVER_DESC;
static char serial_num [40] = "1";
-static char pnp_string [1024] =
+static char pnp_string[PNP_STRING_LEN] =
"XXMFG:linux;MDL:g_printer;CLS:PRINTER;SN:1;";
/* static strings, in UTF-8 */
INIT_LIST_HEAD(&dev->rx_buffers);
if (pnp_str)
- strlcpy(&pnp_string[2], pnp_str, sizeof(pnp_string) - 2);
+ strlcpy(&pnp_string[2], pnp_str, PNP_STRING_LEN - 2);
len = strlen(pnp_string);
pnp_string[0] = (len >> 8) & 0xFF;