Subversion Repositories Kolibri OS

Rev

Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5056 Rev 5270
Line 20... Line 20...
20
#include 	/* for KSYM_SYMBOL_LEN */
20
#include 	/* for KSYM_SYMBOL_LEN */
21
#include 
21
#include 
22
#include 
22
#include 
23
#include 
23
#include 
24
#include 
24
#include 
25
#include 
-
 
-
 
25
 
26
#include 
26
#include 
27
#include 
27
#include 
Line 28... Line 28...
28
 
28
 
-
 
29
#include 
Line 29... Line 30...
29
#include 
30
#include 		/* for PAGE_SIZE */
30
 
31
 
31
 
32
 
Line 39... Line 40...
39
{
40
{
40
        s32 remainder;
41
        s32 remainder;
41
        return div_s64_rem(dividend, divisor, &remainder);
42
        return div_s64_rem(dividend, divisor, &remainder);
42
}
43
}
Line 43... Line -...
43
 
-
 
44
struct va_format {
-
 
45
    const char *fmt;
-
 
46
    va_list *va;
-
 
Line 47... Line 44...
47
};
44
 
Line 48... Line 45...
48
 
45
 
49
#define ZERO_SIZE_PTR ((void *)16)
46
#define ZERO_SIZE_PTR ((void *)16)
Line 60... Line 57...
60
const char hex_asc[] = "0123456789abcdef";
57
const char hex_asc[] = "0123456789abcdef";
Line 61... Line 58...
61
 
58
 
62
/* Works only for digits and letters, but small and fast */
59
/* Works only for digits and letters, but small and fast */
Line 63... Line -...
63
#define TOLOWER(x) ((x) | 0x20)
-
 
64
 
-
 
65
static inline char *hex_byte_pack(char *buf, u8 byte)
-
 
66
{
-
 
67
        *buf++ = hex_asc_hi(byte);
-
 
68
        *buf++ = hex_asc_lo(byte);
-
 
69
        return buf;
-
 
Line 70... Line 60...
70
}
60
#define TOLOWER(x) ((x) | 0x20)
71
 
61
 
72
 
62
 
73
char *skip_spaces(const char *str)
63
char *skip_spaces(const char *str)
Line 1295... Line 1285...
1295
 * %pI6c print an IPv6 address as specified by RFC 5952
1285
 * %pI6c print an IPv6 address as specified by RFC 5952
1296
 * %pIS depending on sa_family of 'struct sockaddr *' print IPv4/IPv6 address
1286
 * %pIS depending on sa_family of 'struct sockaddr *' print IPv4/IPv6 address
1297
 * %piS depending on sa_family of 'struct sockaddr *' print IPv4/IPv6 address
1287
 * %piS depending on sa_family of 'struct sockaddr *' print IPv4/IPv6 address
1298
 * %pU[bBlL] print a UUID/GUID in big or little endian using lower or upper
1288
 * %pU[bBlL] print a UUID/GUID in big or little endian using lower or upper
1299
 *   case.
1289
 *   case.
-
 
1290
 * %*pE[achnops] print an escaped buffer
1300
 * %*ph[CDN] a variable-length hex string with a separator (supports up to 64
1291
 * %*ph[CDN] a variable-length hex string with a separator (supports up to 64
1301
 *           bytes of the input)
1292
 *           bytes of the input)
1302
 * %n is ignored
1293
 * %n is ignored
1303
 *
1294
 *
1304
 * ** Please update Documentation/printk-formats.txt when making changes **
1295
 * ** Please update Documentation/printk-formats.txt when making changes **