summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-11 13:55:23 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-11 13:55:23 +0000
commit834b397d9dc5869e677ca11f1ed64c2b23601d7d (patch)
tree660eb386bbae12197ceb04e0e16dc9f82edef801
parent6d1b40ec91b315721ac273927c7a4a09be5acadd (diff)
downloadldetect-834b397d9dc5869e677ca11f1ed64c2b23601d7d.tar
ldetect-834b397d9dc5869e677ca11f1ed64c2b23601d7d.tar.gz
ldetect-834b397d9dc5869e677ca11f1ed64c2b23601d7d.tar.bz2
ldetect-834b397d9dc5869e677ca11f1ed64c2b23601d7d.tar.xz
ldetect-834b397d9dc5869e677ca11f1ed64c2b23601d7d.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...
-rw-r--r--NEWS2
-rw-r--r--common.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0080132..f3b312f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- bump max devices number per bus from 100 to 300 (mga#8320)
+
Version 0.12.3 - 12 September 2012, Thierry Vignaud
- make ldetect 3x faster
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 {