]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'lsfd--timerfd' of https://github.com/masatake/util-linux
authorKarel Zak <kzak@redhat.com>
Tue, 6 Jun 2023 08:45:17 +0000 (10:45 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jun 2023 08:45:17 +0000 (10:45 +0200)
* 'lsfd--timerfd' of https://github.com/masatake/util-linux:
  tests: (lsfd/filter) add a case for comparing floating point numbers
  tests: (lsfd) add a case for testing timerfd related columns
  tests: add ts_skip_capability
  tests: (mkfds) add a factory to make a timerfd
  lsfd.1.adoc: write about timerfd
  lsfd: print the detail of the timer associated with a timerfd
  lsfd: (filter) accept floating point numbers in expressions
  lsfd: (filter) support floating point number used in columns
  lsfd: (filter) reduce duplicated code in macro definitions
  lsfd: (filter) improve error message
  lsfd.1.adoc: revise type names for columns
  lsfd.1.adoc: fix typos
  lsfd: adjust coding style
  lsfd: fix a sentence in comment

1  2 
misc-utils/lsfd-filter.c
tests/functions.sh

index 53be907ac823354d20318a0b794ec5e1762ef7d4,cabcb4ae10f0a0a96ce6aa60325ec7e7386ee3ee..919f607e844e5973f1cbe3033409a241408a51a4
@@@ -1224,10 -1326,10 +1326,10 @@@ static bool op2_check_type_eq_or_bool_o
        return op2_check_type_boolean_or_op(parser, op2_class, left, right);
  }
  
 -static bool op2_check_type_num(struct parser* parser, struct op2_class *op2_class,
 +static bool op2_check_type_num(struct parser* parser, const struct op2_class *op2_class,
                               struct node *left, struct node *right)
  {
-       if (left->type != NODE_NUM) {
+       if (left->type != NODE_NUM && left->type != NODE_FNUM) {
                snprintf(parser->errmsg, sizeof(parser->errmsg),
                         _("error: unexpected left operand type %s for: %s"),
                         NODE_CLASS(left)->name,
Simple merge