From c9cb4702b7a776582df66ebc42fa1c0e7e9ede23 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 12 Dec 2012 10:12:19 +0000 Subject: bump max devices number per bus from 100 to 300 (mga#8320) impact: we temporary allocate one more kilobyte better fix would be dynamically allocate what we need... (backported from trunk) --- NEWS | 1 + common.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e659629..0299e59 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- bump max devices number per bus from 100 to 300 (mga#8320) - make ldetect 3x faster Version 0.12.1 - 19 January 2012, Thierry Vignaud diff --git a/common.h b/common.h index cf99de2..9a70107 100644 --- a/common.h +++ b/common.h @@ -23,7 +23,7 @@ extern struct kmod_ctx* modalias_init() NON_EXPORTED; extern char *modalias_resolve_module(struct kmod_ctx *ctx, const char *modalias) NON_EXPORTED; extern void modalias_cleanup(struct kmod_ctx *ctx) NON_EXPORTED; -#define MAX_DEVICES 100 +#define MAX_DEVICES 300 #define BUF_SIZE 512 typedef struct { -- cgit v1.2.1