diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-11 13:55:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-11 13:55:23 +0000 |
commit | 834b397d9dc5869e677ca11f1ed64c2b23601d7d (patch) | |
tree | 660eb386bbae12197ceb04e0e16dc9f82edef801 | |
parent | 6d1b40ec91b315721ac273927c7a4a09be5acadd (diff) | |
download | ldetect-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-- | NEWS | 2 | ||||
-rw-r--r-- | common.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 @@ -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 { |