!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/lib/firmware/carl9170fw/carlfw/include/   drwxr-xr-x
Free 9.6 GB of 29.4 GB (32.64%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     printf.h (2.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * carl9170 firmware - used by the ar9170 wireless device
 *
 * printf and his friends...
 *
 * Copyright (c) 2000-2005 ZyDAS Technology Corporation
 * Copyright (c) 2007-2009 Atheros Communications, Inc.
 * Copyright    2009    Johannes Berg <johannes@sipsolutions.net>
 * Copyright 2009-2011    Christian Lamparter <chunkeey@googlemail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef __CARL9170FW_PRINTF_H
#define __CARL9170FW_PRINTF_H

#include <stdarg.h>
#include <string.h>
#include "config.h"
#include "carl9170.h"
#include "uart.h"
#include "fwcmd.h"

#ifdef CONFIG_CARL9170FW_PRINTF
void __attribute__((format (printf, 1, 2))) tfp_printf(const char *fmt, ...);

#define printf tfp_printf

#else
void __attribute__((format (printf, 1, 2))) min_printf(const char *fmt, ...);

#define printf min_printf
#endif /* CONFIG_CARL9170FW_PRINTF */

#define PRINT(fmt, args...)                        \
    do {                                \
        printf(fmt, ## args);                    \
    } while (0)

#define INFO(fmt, args...)    PRINT(fmt, ## args)

#define ERR(fmt, args...)    PRINT(CARL9170_ERR_MAGIC fmt, ## args)

#ifdef CONFIG_CARL9170FW_DEBUG
#define DBG(fmt, args...)    PRINT(fmt, ## args)
#else
#define DBG(...)        do { } while (0);
#endif

/*
 * NB: even though the MACRO is called "stall". It isn't supposed
 * to stall since this will render the device unresponsive, until
 * someone pulls the plug.
 */
#define STALL()

#define BUG(fmt, args...)                        \
    do {                                \
        PRINT(CARL9170_BUG_MAGIC" %s()@%d \"" fmt "\"" ,    \
              __func__, __LINE__, ## args);            \
        STALL()                            \
    } while (0);

#define BUG_ON(condition)                        \
    ({                                \
        int __ret = !!(condition);                \
        if (unlikely(!!(__ret)))                \
            BUG(#condition);                \
        (__ret);                        \
    })

static inline __inline void putcharacter(const char c __unused)
{
#ifdef CONFIG_CARL9170FW_DEBUG_USB
    usb_putc(c);
#endif /* CONFIG_CARL9170FW_DEBUG_USB */

#ifdef CONFIG_CARL9170FW_DEBUG_UART
    uart_putc(c);
#endif /* CONFIG_CARL9170FW_DEBUG_UART */
}

static inline __inline void print_hex_dump(const void *buf __unused, int len __unused)
{
#ifdef CONFIG_CARL9170FW_DEBUG_USB
    usb_print_hex_dump(buf, len);
#endif /* CONFIG_CARL9170FW_DEBUG_USB */

#ifdef CONFIG_CARL9170FW_DEBUG_UART
    uart_print_hex_dump(buf, len);
#endif /* CONFIG_CARL9170FW_DEBUG_UART */
}

#endif /* __CARL9170FW_PRINTF_H */


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0052 ]--