Skip to content
Snippets Groups Projects
  1. Jul 29, 2016
    • Adam Wujek's avatar
      revert "util: add the perverse SNMP 'string' time format" · 82c66565
      Adam Wujek authored
      
      We revert this commit, since we decided to support objects only from our own
      MIB. So we don't need this this specific time format.
      
      So, revert the commit:
      util: add the perverse SNMP 'string' time format
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      82c66565
    • Alessandro Rubini's avatar
      util: add the perverse SNMP 'string' time format · 0e611221
      Alessandro Rubini authored and Adam Wujek's avatar Adam Wujek committed
      
      /var/lib/mibs/ietf/SNMPv2-TC
      
      DateAndTime ::= TEXTUAL-CONVENTION
          DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
          STATUS       current
          DESCRIPTION
                  "A date-time specification.
      
                  field  octets  contents                  range
                  -----  ------  --------                  -----
                    1      1-2   year*                     0..65536
                    2       3    month                     1..12
                    3       4    day                       1..31
                    4       5    hour                      0..23
                    5       6    minutes                   0..59
                    6       7    seconds                   0..60
                                 (use 60 for leap-second)
                    7       8    deci-seconds              0..9
                    8       9    direction from UTC        '+' / '-'
                    9      10    hours from UTC*           0..13
                   10      11    minutes from UTC          0..59
      
                  * Notes:
                  - the value of year is in network-byte order
                  - daylight saving time in New Zealand is +13
      
                  For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
                  displayed as:
      
                                   1992-5-26,13:30:15.0,-4:0
      
                  Note that if only local time is known, then timezone
                  information (fields 8-10) is not present."
          SYNTAX       OCTET STRING (SIZE (8 | 11))
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      0e611221
  2. Feb 15, 2016
  3. Jan 20, 2016
    • Alessandro Rubini's avatar
      general: remove TRACE_DEV (and shrink binary) · c24326a8
      Alessandro Rubini authored
      
      This removes TRACE_DEV(), turning it into pll_verbose() and wrc_verbose().
      
      The functions are enabled and disabled by kconfig, with defaults matching
      the previous behaviour.
      
      So nothing changes, but the binary is smaller because the previous
      wrc_debug_printf() was silent because of a run-time conditional
      (though hardwired false at build time). The condional is now at build
      time.  We save around 2k, between strings and calling code, in
      all wrc builds (nothing is saved in wrs, which is verbose by default,
      nor in devel_build_test_defconfig where all verbose options are on)).
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      
      devel_build_test_defconfig: enable all verbose options
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      c24326a8
  4. Oct 30, 2015
    • Alessandro Rubini's avatar
      general: add missing copyright notes. · 5e844431
      Alessandro Rubini authored
      
      This commit fixes all copyright notes, using "git blame" as a
      reference.  For simple files I just added a 2-lines boilerplate about
      being WR and GPL.
      
      Some parts I left untouched:
      
        trivial-init and related files (unclear to me what this is,
        and pf-microcode.h is magic binary pfilter values).
      
        tools/lm32-etheruart: I don't know what this is and who the author is
      
        libsdbfs: this comes from another repo and I'd better not change it
      
        sfp_lib.h and hal_shmem.h: I lost track about the origin of this,
        among the several packages.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      5e844431
  5. Jul 26, 2015
  6. Feb 12, 2013
  7. Oct 05, 2012
    • Alessandro Rubini's avatar
      Remove all spaces at end-of-line · 1d24ecfb
      Alessandro Rubini authored
      If you find this patch with "git blame" please use "git blame -w"
      to have all white-space ignored while associating lines to commits.
      
      This commit has no practical effect but cleanup. I made it
      with sed like this:
      
        git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//'
      
      However, I had to manually restore doc/wrpc_mon.png after the fact.
      Similarly, I restored the include/hw/*regs.h files, as they
      are (most likely) auto-generated.
      1d24ecfb
  8. Jun 12, 2012
  9. Jun 06, 2012