Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1625925 > unrolled thread

[PATCH 3/3] iio: tools: generic_buffer: increase trigger length

Started byEugen Hristev <eugen.hristev@microchip.com>
First post2017-04-19 10:30 +0200
Last post2017-04-20 18:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] iio: tools: generic_buffer: increase trigger length Eugen Hristev <eugen.hristev@microchip.com> - 2017-04-19 10:30 +0200
    Re: [PATCH 3/3] iio: tools: generic_buffer: increase trigger length Daniel Baluta <daniel.baluta@gmail.com> - 2017-04-20 18:10 +0200

#1625925 — [PATCH 3/3] iio: tools: generic_buffer: increase trigger length

FromEugen Hristev <eugen.hristev@microchip.com>
Date2017-04-19 10:30 +0200
Subject[PATCH 3/3] iio: tools: generic_buffer: increase trigger length
Message-ID<txT9U-15G-15@gated-at.bofh.it>
Increased trigger length to 50 in order to cope with trigger names like
fc030000.adc-dev0-external-rising

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 tools/iio/iio_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/iio/iio_utils.h b/tools/iio/iio_utils.h
index 780f201..9d59771 100644
--- a/tools/iio/iio_utils.h
+++ b/tools/iio/iio_utils.h
@@ -13,7 +13,7 @@
 #include <stdint.h>
 
 /* Made up value to limit allocation sizes */
-#define IIO_MAX_NAME_LENGTH 30
+#define IIO_MAX_NAME_LENGTH 50
 
 #define FORMAT_SCAN_ELEMENTS_DIR "%s/scan_elements"
 #define FORMAT_TYPE_FILE "%s_type"
-- 
2.7.4

[toc] | [next] | [standalone]


#1627625

FromDaniel Baluta <daniel.baluta@gmail.com>
Date2017-04-20 18:10 +0200
Message-ID<tymOD-2ES-37@gated-at.bofh.it>
In reply to#1625925
On Wed, Apr 19, 2017 at 11:20 AM, Eugen Hristev
<eugen.hristev@microchip.com> wrote:
> Increased trigger length to 50 in order to cope with trigger names like
> fc030000.adc-dev0-external-rising
>
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
> ---
>  tools/iio/iio_utils.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/iio/iio_utils.h b/tools/iio/iio_utils.h
> index 780f201..9d59771 100644
> --- a/tools/iio/iio_utils.h
> +++ b/tools/iio/iio_utils.h
> @@ -13,7 +13,7 @@
>  #include <stdint.h>
>
>  /* Made up value to limit allocation sizes */
> -#define IIO_MAX_NAME_LENGTH 30
> +#define IIO_MAX_NAME_LENGTH 50

While at it, lets be brave and set it to 64. :)

Daniel.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web