~ubuntu-branches/ubuntu/karmic/rsyslog/karmic-200908151517

« back to all changes in this revision

Viewing changes to plugins/imklog/ksym_mod.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2008-07-23 02:22:32 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080723022232-496osxty0v9vvw9g
Tags: 3.18.1-1
* New upstream release. Closes: #490445
  - List Debian in doc/rsyslog_packages.html. Closes: #488870
  - Fix compilation of imklog module on GNU/kFreeBSD. Closes: #491193
* debian/rsyslog-doc.install
  - Install the example config file. Closes: #488860
* debian/rules
  - Enable mail output plugin.
  - Make sure all directories are created by calling dh_installdirs for both
    binary-arch and binary-indep. Closes: #491459
* debian/rsyslog.install
  - Install mail output plugin (ommail.so).
* debian/control
  - Add Suggests www-browser to rsyslog-doc as the package contains mostly
    html documents.
  - Update feature list.
  - Adjust priorities, set rsyslog priority to important.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
 
159
159
        if ( ksyms == NULL ) {
160
160
                if ( errno == ENOENT )
161
 
                        Syslog(LOG_INFO, "No module symbols loaded - "
 
161
                        imklogLogIntMsg(LOG_INFO, "No module symbols loaded - "
162
162
                               "kernel modules not enabled.\n");
163
163
                else
164
 
                        Syslog(LOG_ERR, "Error loading kernel symbols " \
 
164
                        imklogLogIntMsg(LOG_ERR, "Error loading kernel symbols " \
165
165
                               "- %s\n", strerror(errno));
166
166
                return(0);
167
167
        }
200
200
        }
201
201
 
202
202
        if ( rtn == 0 )
203
 
                Syslog(LOG_INFO, "No module symbols loaded.");
 
203
                imklogLogIntMsg(LOG_INFO, "No module symbols loaded.");
204
204
        else
205
 
                Syslog(LOG_INFO, "Loaded %d %s from %d module%s", rtn, \
 
205
                imklogLogIntMsg(LOG_INFO, "Loaded %d %s from %d module%s", rtn, \
206
206
                       (rtn == 1) ? "symbol" : "symbols", \
207
207
                       num_modules, (num_modules == 1) ? "." : "s.");
208
208
 
295
295
 
296
296
                if ( sym_array_modules == NULL )
297
297
                {
298
 
                        Syslog(LOG_WARNING, "Cannot allocate Module array.\n");
 
298
                        imklogLogIntMsg(LOG_WARNING, "Cannot allocate Module array.\n");
299
299
                        return NULL;
300
300
                }
301
301
                mp = sym_array_modules;
307
307
 
308
308
                if ( mp == NULL )
309
309
                {
310
 
                        Syslog(LOG_WARNING, "Cannot allocate Module array.\n");
 
310
                        imklogLogIntMsg(LOG_WARNING, "Cannot allocate Module array.\n");
311
311
                        return NULL;
312
312
                }
313
313