diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-12 10:12:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-12 10:12:19 +0000 |
commit | c9cb4702b7a776582df66ebc42fa1c0e7e9ede23 (patch) | |
tree | 17fc02621a2af712f143d8c4bbfc077e76b5b857 | |
parent | ee5d3e43c585a4386ded58d76fac2ef0985d96b5 (diff) | |
download | ldetect-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-- | NEWS | 1 | ||||
-rw-r--r-- | common.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 @@ -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 { |