summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-12 10:12:19 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-12 10:12:19 +0000
commitc9cb4702b7a776582df66ebc42fa1c0e7e9ede23 (patch)
tree17fc02621a2af712f143d8c4bbfc077e76b5b857
parentee5d3e43c585a4386ded58d76fac2ef0985d96b5 (diff)
downloadldetect-c9cb4702b7a776582df66ebc42fa1c0e7e9ede23.tar
ldetect-c9cb4702b7a776582df66ebc42fa1c0e7e9ede23.tar.gz
ldetect-c9cb4702b7a776582df66ebc42fa1c0e7e9ede23.tar.bz2
ldetect-c9cb4702b7a776582df66ebc42fa1c0e7e9ede23.tar.xz
ldetect-c9cb4702b7a776582df66ebc42fa1c0e7e9ede23.zip
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)
-rw-r--r--NEWS1
-rw-r--r--common.h2
2 files changed, 2 insertions, 1 deletions
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 {