Display string size that is guaranteed to be no longer the 99 characters.
Don't use a magic number throughout the code, define it once and use it
throughout.
Signed-off-by: Erik Arfvidson <[email protected]>
Signed-off-by: David Kershner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
static int visorbus_debugref;
#define SERIALLOOPBACKCHANADDR (100 * 1024 * 1024)
+/* Display string that is guaranteed to be no longer the 99 characters*/
+#define LINESIZE 99
+
#define CURRENT_FILE_PC VISOR_BUS_PC_visorbus_main_c
#define POLLJIFFIES_TESTWORK 100
#define POLLJIFFIES_NORMALCHANNEL 10
char *buf)
{
struct visor_device *vdev = to_visor_device(dev);
- char typeid[99];
+ char typeid[LINESIZE];
if (!vdev->visorchannel)
return 0;
char *buf)
{
struct visor_device *vdev = to_visor_device(dev);
- char zoneid[99];
+ char zoneid[LINESIZE];
if (!vdev->visorchannel)
return 0;